mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
fix issue 895 (scheduler creates zombies)
fix bug in windows : tasks did not start cleanup
This commit is contained in:

committed by
Romain Neutron

parent
eb73d9b907
commit
bfc1ddcb5f
@@ -143,7 +143,7 @@ class module_console_taskrun extends Command
|
||||
|
||||
if (time() - $start > 0) {
|
||||
if ($this->shedulerPID) {
|
||||
if ( ! posix_kill($this->shedulerPID, 0)) {
|
||||
if (function_exists('posix_kill') && !posix_kill($this->shedulerPID, 0)) {
|
||||
if (method_exists($this->task, 'signal')) {
|
||||
$this->task->signal('SIGNAL_SCHEDULER_DIED');
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user