Merge pull request #652 from beyondcode/fix/pcntl-on-windows

[fix] Check for PCNTL
This commit is contained in:
rennokki 2021-01-08 10:37:45 +02:00 committed by GitHub
commit 8baefdd4c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,
// then stopping the loop.
if (! extension_loaded('pcntl')) {
return;
}
$this->loop->addSignal(SIGTERM, function () {
$this->line('Closing existing connections...');