mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 03:51:37 +00:00
Process: add subprocess parameter to kill()
fix CommandReader subprocess lingering on a crash and fucking up the console
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user