This commit is contained in:
2021-11-05 01:11:32 +08:00
parent 9c5ba4b3e9
commit 133455a041
@@ -100,7 +100,7 @@ class FileChangeCustomProcess extends Command
if (file_exists(storage('.swoole.pid'))) { if (file_exists(storage('.swoole.pid'))) {
$content = (int)file_get_contents(storage('.swoole.pid')); $content = (int)file_get_contents(storage('.swoole.pid'));
if ($content > 0 && Process::kill($content,0)){ if ($content > 0 && Process::kill($content,0)){
Process::kill($content,15); var_dump(Process::kill($content,15));
} }
@unlink(storage('.swoole.pid')); @unlink(storage('.swoole.pid'));
} }