改名
This commit is contained in:
@@ -10,7 +10,6 @@ use Kiri\Exception\ConfigException;
|
||||
use Kiri\Kiri;
|
||||
use Swoole\Coroutine;
|
||||
use Swoole\Process;
|
||||
use Swoole\Runtime;
|
||||
use Symfony\Component\Console\Command\Command;
|
||||
use Symfony\Component\Console\Input\InputInterface;
|
||||
use Symfony\Component\Console\Output\OutputInterface;
|
||||
@@ -91,13 +90,15 @@ class HotReload extends Command
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param $data
|
||||
* @throws Exception
|
||||
*/
|
||||
public function onSignal($data)
|
||||
{
|
||||
if (!$data) {
|
||||
return;
|
||||
}
|
||||
$this->driver->clear();
|
||||
$pid = file_get_contents(storage('.swoole.pid'));
|
||||
if (!empty($pid) && Process::kill($pid, 0)) {
|
||||
@@ -129,7 +130,6 @@ class HotReload extends Command
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 重启
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user