1
This commit is contained in:
@@ -73,6 +73,7 @@ class HotReload extends Command
|
|||||||
}
|
}
|
||||||
$this->trigger_reload();
|
$this->trigger_reload();
|
||||||
pcntl_signal(SIGTERM | SIGKILL, function ($data) {
|
pcntl_signal(SIGTERM | SIGKILL, function ($data) {
|
||||||
|
var_dump($data);
|
||||||
$pid = file_get_contents(storage('.swoole.pid'));
|
$pid = file_get_contents(storage('.swoole.pid'));
|
||||||
if (!empty($pid) && Process::kill($pid, 0)) {
|
if (!empty($pid) && Process::kill($pid, 0)) {
|
||||||
Process::kill($pid, SIGTERM);
|
Process::kill($pid, SIGTERM);
|
||||||
|
|||||||
Reference in New Issue
Block a user