if fork() fails, it returns undef

if fork() fails, it returns undef not a negative number
pull/37/head
François Lafont 8 years ago
parent 2ec37a63b8
commit 64586b3c73
  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