Notify.php
authorAlan Knowles <alan@akbkhome.com>
Fri, 3 Feb 2012 02:31:52 +0000 (10:31 +0800)
committerAlan Knowles <alan@akbkhome.com>
Fri, 3 Feb 2012 02:31:52 +0000 (10:31 +0800)
Notify.php

index 2f61102..1b771b6 100644 (file)
@@ -201,14 +201,14 @@ class Pman_Core_Notify extends Pman
         $pool = array();
         clearstatcache();
         foreach($this->pool as $p) {
-            $ar = proc_get_status($p['proc']);
+             
             
             
-            if (file_exists('/proc/'.$ar['pid'])) {
+            if (file_exists('/proc/'.$p['pid'])) {
                 $pool[] = $p;
                 continue;
             }
-            echo $p['cmd'] . " : " . file_get_contents($p['out']) . "\n";
+            echo "ENDED: " . $p['cmd'] . " : " . file_get_contents($p['out']) . "\n";
             //unlink($p['out']);
         }
         $this->pool = $pool;