walkor il y a 3 ans
Parent
commit
ed760b0eab
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      Worker.php

+ 2 - 2
Worker.php

@@ -33,7 +33,7 @@ class Worker
      *
      * @var string
      */
-    const VERSION = '4.0.27';
+    const VERSION = '4.0.28';
 
     /**
      * Status starting.
@@ -1827,7 +1827,7 @@ class Worker
 
         static::$_status = static::STATUS_SHUTDOWN;
         // For master process.
-        if (static::$_masterPid === \posix_getpid()) {
+        if (\DIRECTORY_SEPARATOR === '/' && static::$_masterPid === \posix_getpid()) {
             static::log("Workerman[" . \basename(static::$_startFile) . "] stopping ...");
             $worker_pid_array = static::getAllWorkerPids();
             // Send stop signal to all child processes.