mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 20:28:31 +00:00
Re-enable support for SIGTERM for clean exit
This commit is contained in:
parent
48f2927e08
commit
3d80362560
@ -1434,7 +1434,7 @@ class Server{
|
|||||||
//register_shutdown_function(array($this, "dumpError"));
|
//register_shutdown_function(array($this, "dumpError"));
|
||||||
register_shutdown_function(array($this, "shutdown"));
|
register_shutdown_function(array($this, "shutdown"));
|
||||||
if(function_exists("pcntl_signal")){
|
if(function_exists("pcntl_signal")){
|
||||||
//pcntl_signal(SIGTERM, array($this, "shutdown"));
|
pcntl_signal(SIGTERM, array($this, "shutdown"));
|
||||||
pcntl_signal(SIGINT, array($this, "shutdown"));
|
pcntl_signal(SIGINT, array($this, "shutdown"));
|
||||||
pcntl_signal(SIGHUP, array($this, "shutdown"));
|
pcntl_signal(SIGHUP, array($this, "shutdown"));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user