eee
This commit is contained in:
+11
-1
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user