This commit is contained in:
2021-11-04 23:44:47 +08:00
parent 54f60e8765
commit 8add22f589
@@ -57,7 +57,7 @@ class FileChangeCustomProcess extends Command
public function execute(InputInterface $input, OutputInterface $output): int
{
// TODO: Implement onHandler() method.
set_error_handler([$this, 'onErrorHandler']);
// set_error_handler([$this, 'onErrorHandler']);
$this->dirs = Config::get('inotify', [APP_PATH . 'app']);
if (!extension_loaded('inotify')) {
@@ -105,6 +105,7 @@ class FileChangeCustomProcess extends Command
{
Kiri::getDi()->get(Logger::class)->warning('change reload');
$content = (int)file_get_contents(storage('.swoole.pid'));
if (!empty($content)) {
var_dump($content, Process::kill($content, 0));