modify plugin name

This commit is contained in:
2022-06-22 18:43:36 +08:00
parent f83afa3e71
commit 16ea9f3848
2 changed files with 9 additions and 19 deletions
+2 -2
View File
@@ -90,10 +90,10 @@ abstract class BaseProcess implements OnProcessInterface
public function onSigterm(): static
{
if (!Context::inCoroutine()) {
Process::signal(SIGTERM | SIGINT, fn($data) => $this->onShutdown($data));
Process::signal(SIGTERM, fn($data) => $this->onShutdown($data));
} else {
$listen = function () {
$data = Coroutine::waitSignal(SIGTERM | SIGINT, -1);
$data = Coroutine::waitSignal(SIGTERM, -1);
if ($data) {
$this->onShutdown($data);
}