modify plugin name

This commit is contained in:
2022-07-11 16:33:46 +08:00
parent cba75d419d
commit a55944a285
+13
View File
@@ -20,6 +20,7 @@ class Scanner extends BaseProcess
public string $name = 'hot reload';
protected bool $enable_coroutine = false;
private array $dirs = [];
@@ -125,6 +126,18 @@ class Scanner extends BaseProcess
}
/**
* @return $this
*/
public function onSigterm(): static
{
pcntl_signal(SIGTERM, function () {
$this->onProcessStop();
});
return $this;
}
/**
* @throws Exception
*/