Process: add subprocess parameter to kill()

fix CommandReader subprocess lingering on a crash and fucking up the console
This commit is contained in:
Dylan K. Taylor
2021-10-02 16:56:24 +01:00
parent 2566123e49
commit dd0c2fed82
4 changed files with 9 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ class ServerKiller extends Thread{
});
if(time() - $start >= $this->time){
echo "\nTook too long to stop, server was killed forcefully!\n";
@Process::kill(Process::pid());
@Process::kill(Process::pid(), true);
}
}