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

Commit 8baefdd

Browse files
authored
Merge pull request #652 from beyondcode/fix/pcntl-on-windows
[fix] Check for PCNTL
2 parents bf049a3 + 483ce85 commit 8baefdd

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)