From aca311521bff2836568d6331cc1a0847e8d65453 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 3 Feb 2012 12:15:57 +0800 Subject: [PATCH] Notify.php --- Notify.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Notify.php b/Notify.php index c6eb065c..5fd5e9e2 100644 --- a/Notify.php +++ b/Notify.php @@ -231,13 +231,19 @@ class Pman_Core_Notify extends Pman continue; } + echo "CLOSING: " . $p['cmd'] . " : " . file_get_contents($p['out']) . "\n"; //fclose($p['pipes'][1]); fclose($p['pipes'][0]); fclose($p['pipes'][2]); proc_close($p['proc']); - echo "ENDED: " . $p['cmd'] . " : " . file_get_contents($p['out']) . "\n"; + clearstatcache(); + if (file_exists('/proc/'.$p['pid'])) { + $pool[] = $p; + continue; + } + echo "ENDED: " . $p['cmd'] . " : " . file_get_contents($p['out']) . "\n"; //unlink($p['out']); } -- 2.39.2