This commit is contained in:
2026-07-08 11:39:27 +08:00
parent 1f443958e8
commit 27ffa05515
6 changed files with 221 additions and 30 deletions
+11 -1
View File
@@ -76,10 +76,20 @@ class HotReload extends AbstractProcess
*/
public function onSigterm(): void
{
// TODO: Implement onSigterm() method.
$this->stop();
}
public function stop(): void
{
parent::stop();
if (isset($this->pipe) && is_resource($this->pipe)) {
@Event::del($this->pipe);
@fclose($this->pipe);
}
@Event::exit();
}
/**
* @param ?Process $process
*/