try elswhere
authorAlan <alan@roojs.com>
Thu, 12 Oct 2023 07:56:06 +0000 (15:56 +0800)
committerAlan <alan@roojs.com>
Thu, 12 Oct 2023 07:56:06 +0000 (15:56 +0800)
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;