Don't trigger soft shutdown if no pcntl is existent.

This commit is contained in:
Alex Renoki 2021-01-08 10:27:11 +02:00
parent bf049a346d
commit 483ce85ef9
1 changed files with 4 additions and 0 deletions

View File

@ -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...');