From bf820b699d13d2ba79d08b9059da24d400d5ebac Mon Sep 17 00:00:00 2001 From: Alan Date: Thu, 12 Oct 2023 15:53:51 +0800 Subject: [PATCH] try wait on proc --- Notify.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Notify.php b/Notify.php index 95b446af..5ca067b3 100644 --- a/Notify.php +++ b/Notify.php @@ -475,6 +475,9 @@ class Pman_Core_Notify extends Pman foreach($this->pool as $p) { //echo "CHECK PID: " . $p['pid'] . "\n"; + + pcntl_waitpid($p['proc'], $status, WNOHANG); + $info = proc_get_status($p['proc']); //var_dump($info); @@ -522,7 +525,8 @@ class Pman_Core_Notify extends Pman //fclose($p['pipes'][1]); proc_close($p['proc']); - + proc_terminate($p['proc'], 9); + //clearstatcache(); //if (file_exists('/proc/'.$p['pid'])) { -- 2.39.2