Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 483ce85

Browse files
committed
Don't trigger soft shutdown if no pcntl is existent.
1 parent bf049a3 commit 483ce85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Console/Commands/StartServer.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ protected function configurePcntlSignal()
172172
// to receive new connections, close the current connections,
173173
// then stopping the loop.
174174

175+
if (! extension_loaded('pcntl')) {
176+
return;
177+
}
178+
175179
$this->loop->addSignal(SIGTERM, function () {
176180
$this->line('Closing existing connections...');
177181

0 commit comments

Comments
 (0)