From 2708c23f60c78abd947c1dea45b873e68eee7dec Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 29 Jan 2015 16:45:33 +0800 Subject: [PATCH] Notify.php --- Notify.php | 8 ++++++++ 1 file changed, 8 insertions(+) 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; } -- 2.39.2