diff --git a/src/Swoole/ServerProcessInspector.php b/src/Swoole/ServerProcessInspector.php index 1c706e3ba..c89878093 100644 --- a/src/Swoole/ServerProcessInspector.php +++ b/src/Swoole/ServerProcessInspector.php @@ -41,7 +41,7 @@ public function reloadServer(): void 'masterProcessId' => $masterProcessId, ] = $this->serverStateFile->read(); - $this->dispatcher->signal($masterProcessId, SIGUSR1); + $this->dispatcher->signal((int) $masterProcessId, SIGUSR1); } /** @@ -59,7 +59,7 @@ public function stopServer(): bool $workerProcessIds = $this->exec->run('pgrep -P '.$managerProcessId); foreach ([$masterProcessId, $managerProcessId, ...$workerProcessIds] as $processId) { - $this->dispatcher->signal($processId, SIGKILL); + $this->dispatcher->signal((int) $processId, SIGKILL); } return true;