Added new Compile Options

This commit is contained in:
Shoghi Cervantes Pueyo 2013-01-14 18:03:55 +01:00
parent 3b10613f98
commit cd05434853
2 changed files with 6 additions and 0 deletions

View File

@ -124,6 +124,7 @@ cd php
--disable-xmlwriter \
--without-pear \
--enable-sockets \
--enable-pcntl \
--enable-pthreads \
--enable-maintainer-zts \
--enable-cli >> $DIR/install.log 2>&1

View File

@ -331,6 +331,11 @@ class PocketMinecraftServer{
register_tick_function(array($this, "tick"));
register_shutdown_function(array($this, "dumpError"));
register_shutdown_function(array($this, "close"));
if(function_exists("pcntl_signal")){
pcntl_signal(SIGTERM, array($this, "close"));
pcntl_signal(SIGINT, array($this, "close"));
pcntl_signal(SIGHUP, array($this, "close"));
}
$this->trigger("server.start", microtime(true));
console("[INFO] Server started!");
$this->process();