111
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user