mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Added new Compile Options
This commit is contained in:
parent
3b10613f98
commit
cd05434853
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user