Revert "改名"

This reverts commit fdf58326
This commit is contained in:
2022-01-18 10:29:32 +08:00
parent 555d653288
commit a2272edc76
-1
View File
@@ -204,7 +204,6 @@ class HotReload extends Command
public function trigger_reload(string $path = '') public function trigger_reload(string $path = '')
{ {
$this->logger->warning('change reload'); $this->logger->warning('change reload');
var_dump($path);
if (!empty($path) && str_starts_with($path, CONTROLLER_PATH)) { if (!empty($path) && str_starts_with($path, CONTROLLER_PATH)) {
$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)) {