Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/apt-mirror/apt-mirror.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Drung <bdrung@debian.org>2015-02-06 19:08:16 +0300
committerBenjamin Drung <bdrung@debian.org>2015-02-06 19:08:16 +0300
commitf5a227b3cd37d43d55581fcc40ce4e797d590fee (patch)
treef36657c6a3085780545ab2eb54099c21a213ab04
parenteb8b34d89a3ead4ff9382625805dc43c8ebc0fc1 (diff)
parent64586b3c7345a0fbae4e1400dd5fefa936e92155 (diff)
Merge pull request #37 from flaf/master
if fork() fails, it returns undef
-rwxr-xr-xapt-mirror2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-mirror b/apt-mirror
index 0f28058..5296c5a 100755
--- a/apt-mirror
+++ b/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 )
{