Re-enable support for SIGTERM for clean exit

This commit is contained in:
William Teder 2014-04-02 21:24:49 -05:00
parent 48f2927e08
commit 3d80362560

View File

@ -1434,7 +1434,7 @@ class Server{
//register_shutdown_function(array($this, "dumpError"));
register_shutdown_function(array($this, "shutdown"));
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(SIGHUP, array($this, "shutdown"));
}