Merge pull request #37 from flaf/master

if fork() fails, it returns undef
pull/40/head
Benjamin Drung 2015-02-06 17:08:16 +01:00
commit f5a227b3cd
1 changed files with 1 additions and 1 deletions

View File

@ -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 )
{