This commit is contained in:
2026-07-08 09:42:56 +08:00
parent 0adfe14a1f
commit 7f36bb0d53
5 changed files with 78 additions and 12 deletions
+3 -1
View File
@@ -6,6 +6,7 @@ namespace Kiri\Server\Processes;
use Swoole\Coroutine;
use Swoole\Process;
use const SIGHUP;
use const SIGINT;
use const SIGTERM;
/**
@@ -133,7 +134,8 @@ abstract class AbstractProcess implements OnProcessInterface
Coroutine::set($array);
Coroutine::create(fn() => $this->coroutineWaitSignal());
} else {
$process::signal(SIGTERM | SIGINT | SIGUSR1, [$this, 'pointWaitSignal']);
$process::signal(SIGTERM, [$this, 'pointWaitSignal']);
$process::signal(SIGINT, [$this, 'pointWaitSignal']);
}
return $this;
}