clear out whether pcntl extension is not installed or just pcntl_fork is unavailable, fixes #1469

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-01-07 15:36:35 +01:00
parent 82fdb84e61
commit 64959c75fe

View File

@@ -59,10 +59,14 @@ if (function_exists('pcntl_fork')) {
}
} else {
fwrite($debugHandler,"PHP compiled without pcntl. Not forking traffic-cron, this may take a long time!");
if (extension_loaded('pcntl')) {
$msg = "PHP compiled with pcntl but pcntl_fork function is not available.";
} else {
$msg = "PHP compiled without pcntl.";
}
fwrite($debugHandler, $msg." Not forking traffic-cron, this may take a long time!");
}
require_once makeCorrectFile(dirname(__FILE__) . '/cron_traffic.inc.functions.php');
/**