Drop usages of Process:kill() with subprocesses parameter

we don't need this any more with console reader improvements, and this was not working correctly anyway.

closes #5234
This commit is contained in:
Dylan K. Taylor
2023-07-20 17:10:39 +01:00
parent 4bdd6410db
commit 9b43ddecbd
5 changed files with 10 additions and 7 deletions

View File

@ -1446,7 +1446,7 @@ class Server{
private function forceShutdownExit() : void{
$this->forceShutdown();
Process::kill(Process::pid(), true);
Process::kill(Process::pid());
}
public function forceShutdown() : void{
@ -1514,7 +1514,7 @@ class Server{
}catch(\Throwable $e){
$this->logger->logException($e);
$this->logger->emergency("Crashed while crashing, killing process");
@Process::kill(Process::pid(), true);
@Process::kill(Process::pid());
}
}
@ -1668,7 +1668,7 @@ class Server{
echo "--- Waiting $spacing seconds to throttle automatic restart (you can kill the process safely now) ---" . PHP_EOL;
sleep($spacing);
}
@Process::kill(Process::pid(), true);
@Process::kill(Process::pid());
exit(1);
}