From 2f9862af237ac01cb303323b3c0c650cb4672f3a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 29 Apr 2014 18:15:19 +0800 Subject: [PATCH] Notify.php --- Notify.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Notify.php b/Notify.php index 8d13d28a..9c5ecf90 100644 --- a/Notify.php +++ b/Notify.php @@ -101,7 +101,8 @@ class Pman_Core_Notify extends Pman /** * @var $maxruntime - maximum time a child is allowed to run - defaut 2 minutes */ - var $maxruntime = 120; + var $maxruntime = 120; + var $table = 'core_notify'; var $target = 'Core/NotifySend'; var $evtype = ''; // any notification... @@ -353,8 +354,7 @@ class Pman_Core_Notify extends Pman { $pool = array(); clearstatcache(); - $maxruntime = 2 * 60; // 2 minutes.. ?? should be long enoguh - + foreach($this->pool as $p) { //echo "CHECK PID: " . $p['pid'] . "\n"; @@ -374,7 +374,7 @@ class Pman_Core_Notify extends Pman //if (file_exists('/proc/'.$p['pid'])) { $runtime = time() - $p['started']; //echo "RUNTIME ({$p['pid']}): $runtime\n"; - if ($runtime > $maxruntime) { + if ($runtime > $this->maxruntime) { proc_terminate($p['proc'], 9); //fclose($p['pipes'][1]); -- 2.39.2