mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Added new Compile Options
This commit is contained in:
parent
3b10613f98
commit
cd05434853
2 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue