Pārlūkot izejas kodu

Update Worker.php

walkor 2 gadi atpakaļ
vecāks
revīzija
887f0cdc97
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/Worker.php

+ 2 - 1
src/Worker.php

@@ -1815,7 +1815,8 @@ class Worker
             $worker_pid_array = static::getAllWorkerPids();
             // Send stop signal to all child processes.
             $sig = static::$_gracefulStop ? \SIGQUIT : \SIGINT;
-
+            // Fix exit with status 2
+            usleep(50000);
             foreach ($worker_pid_array as $worker_pid) {
                 \posix_kill($worker_pid, $sig);
                 if(!static::$_gracefulStop){