try elswhere
[Pman.Core] / Notify.php
index 5ca067b..7837e5b 100644 (file)
@@ -476,7 +476,6 @@ class Pman_Core_Notify extends Pman
              
             //echo "CHECK PID: " . $p['pid'] . "\n";
             
-            pcntl_waitpid($p['proc'], $status, WNOHANG);
             
             $info =  proc_get_status($p['proc']);
             //var_dump($info);
@@ -527,7 +526,8 @@ class Pman_Core_Notify extends Pman
             proc_close($p['proc']);
             proc_terminate($p['proc'], 9);
 
-            
+            pcntl_waitpid($p['proc'], $status, WNOHANG);
+
             //clearstatcache();
             //if (file_exists('/proc/'.$p['pid'])) {
             //    $pool[] = $p;