Merge pull request #37 from flaf/master

if fork() fails, it returns undef
pull/40/head
Benjamin Drung 8 years ago
commit f5a227b3cd
  1. 2
      apt-mirror

@ -249,7 +249,7 @@ sub download_urls
$pid = fork();
die("apt-mirror: can't do fork in download_urls") if $pid < 0;
die("apt-mirror: can't do fork in download_urls") if !defined($pid);
if ( $pid == 0 )
{

Loading…
Cancel
Save