diff options
author | François Lafont <flafdivers@free.fr> | 2014-09-28 17:28:52 +0400 |
---|---|---|
committer | François Lafont <flafdivers@free.fr> | 2014-09-28 17:28:52 +0400 |
commit | 64586b3c7345a0fbae4e1400dd5fefa936e92155 (patch) | |
tree | e102e3e1bf7703bf1e15c8d09ab317625ca72959 | |
parent | 2ec37a63b8c45d7dc6ed883c15b2b910a45e8136 (diff) |
if fork() fails, it returns undef
if fork() fails, it returns undef not a negative number
-rwxr-xr-x | apt-mirror | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ) { |