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

index ae3b3e4..2e41a60 100644 (file)
@@ -197,11 +197,12 @@ class Pman_Core_Notify extends Pman
     function poolfree()
     {
         $pool = array();
+        clearstatcache();
         foreach($this->pool as $p) {
             $ar = proc_get_status($p['proc']);
-           // print_r($p);
-            print_r($ar);
-            if ($ar['running']) {
+            
+            
+            if (file_exists('/proc/'.$ar['pid'])) {
                 $pool[] = $p;
                 continue;
             }