From: Alan Knowles Date: Thu, 29 Jan 2015 08:45:33 +0000 (+0800) Subject: Notify.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=2708c23f60c78abd947c1dea45b873e68eee7dec Notify.php --- diff --git a/Notify.php b/Notify.php index 51c262c4..a6c847e9 100644 --- a/Notify.php +++ b/Notify.php @@ -393,6 +393,14 @@ class Pman_Core_Notify extends Pman $this->logecho("TERMINATING: ({$p['pid']}) " . $p['cmd'] . " : " . file_get_contents($p['out'])); @unlink($p['out']); + $w = DB_DataObject::factory($this->table); + $w->get($p['notify_id']); + $ww = clone($w); + $this->addEvent('NOTIFY', $w, 'TERMINATED - TIMEOUT' . $errmsg); + $w->act_when = date('Y-m-d H:i:s', strtotime('NOW + 30 MINUTES')); + $w->update($ww); + + continue; }