fix issue 895 (scheduler creates zombies)

fix bug in windows : tasks did not start
cleanup
This commit is contained in:
jygaulier
2012-09-26 15:27:14 +02:00
committed by Romain Neutron
parent eb73d9b907
commit bfc1ddcb5f
4 changed files with 13 additions and 8 deletions

View File

@@ -54,6 +54,11 @@ 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();