Skip to content

Commit

Permalink
v4.0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Feb 11, 2022
1 parent d278764 commit ed760b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Worker.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Worker
*
* @var string
*/
const VERSION = '4.0.27';
const VERSION = '4.0.28';

/**
* Status starting.
Expand Down Expand Up @@ -1827,7 +1827,7 @@ public static function stopAll($code = 0, $log = '')

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.
Expand Down

0 comments on commit ed760b0

Please sign in to comment.