diff options
author | Benjamin Drung <bdrung@debian.org> | 2015-02-06 19:08:16 +0300 |
---|---|---|
committer | Benjamin Drung <bdrung@debian.org> | 2015-02-06 19:08:16 +0300 |
commit | f5a227b3cd37d43d55581fcc40ce4e797d590fee (patch) | |
tree | f36657c6a3085780545ab2eb54099c21a213ab04 | |
parent | eb8b34d89a3ead4ff9382625805dc43c8ebc0fc1 (diff) | |
parent | 64586b3c7345a0fbae4e1400dd5fefa936e92155 (diff) |
Merge pull request #37 from flaf/master
if fork() fails, it returns undef
-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 ) { |