/**
* @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...
{
$pool = array();
clearstatcache();
- $maxruntime = 2 * 60; // 2 minutes.. ?? should be long enoguh
-
+
foreach($this->pool as $p) {
//echo "CHECK PID: " . $p['pid'] . "\n";
//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]);