mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Fix #990 : add check on posix support for pcntl
This commit is contained in:
@@ -65,10 +65,9 @@ class task_Scheduler
|
||||
$nullfile = 'NUL';
|
||||
}
|
||||
|
||||
if (function_exists('pcntl_fork')) {
|
||||
if (\task_manager::isPosixPcntlSupported()) {
|
||||
// avoid <defunct> php when a task ends
|
||||
pcntl_signal(SIGCHLD, SIG_IGN);
|
||||
|
||||
$this->method = self::METHOD_FORK;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user