This commit is contained in:
jygaulier
2012-09-26 17:52:07 +02:00
parent 7e2d522c77
commit 9476fb6b51
3 changed files with 10 additions and 11 deletions

View File

@@ -54,10 +54,6 @@ class task_Scheduler
*/
public function run()
{
if (function_exists('pcntl_signal')) {
// avoid <defunct> php when a task ends
pcntl_signal(SIGCHLD, SIG_IGN);
}
$appbox = appbox::get_instance(\bootstrap::getCore());
$registry = $appbox->get_registry();
@@ -76,6 +72,9 @@ class task_Scheduler
}
if (function_exists('pcntl_fork')) {
// avoid <defunct> php when a task ends
pcntl_signal(SIGCHLD, SIG_IGN);
$this->method = self::METHOD_FORK;
}