Don't trigger soft shutdown if no pcntl is existent.
This commit is contained in:
parent
bf049a346d
commit
483ce85ef9
|
|
@ -172,6 +172,10 @@ class StartServer extends Command
|
||||||
// to receive new connections, close the current connections,
|
// to receive new connections, close the current connections,
|
||||||
// then stopping the loop.
|
// then stopping the loop.
|
||||||
|
|
||||||
|
if (! extension_loaded('pcntl')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$this->loop->addSignal(SIGTERM, function () {
|
$this->loop->addSignal(SIGTERM, function () {
|
||||||
$this->line('Closing existing connections...');
|
$this->line('Closing existing connections...');
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue