This commit is contained in:
as2252258@163.com
2021-02-27 02:47:22 +08:00
parent 6118bdd657
commit f0703e6eda
+1 -1
View File
@@ -61,7 +61,7 @@ class OnWorkerStart extends Callback
public function onTaskSignal(Server $server, int $workerId)
{
go(function () use ($server, $workerId) {
$sigkill = Coroutine::waitSignal(SIGTERM | SIGKILL | SIGUSR2 | SIGUSR1, -1);
$sigkill = Coroutine::waitSignal( SIGKILL | SIGUSR2 | SIGUSR1, -1);
if ($sigkill !== false) {
while (Snowflake::app()->isRun()) {
sleep(1);