modify plugin name

This commit is contained in:
2022-03-02 17:25:12 +08:00
parent 7232269ad0
commit c3e914ecf1
+3 -3
View File
@@ -137,9 +137,9 @@ class HotReload extends Command
$this->trigger_reload(); $this->trigger_reload();
Timer::tick(1000, fn() => $this->healthCheck()); Timer::tick(1000, fn() => $this->healthCheck());
Process::signal(SIGTERM, [$this, 'onSignal']); pcntl_signal(SIGTERM, function () {
Process::signal(SIGKILL, [$this, 'onSignal']); $this->onSignal(func_get_args());
});
$this->driver->start(); $this->driver->start();
return 0; return 0;
} }