From 1a4bb218670a3c606738615b9a0decd5fdc3f591 Mon Sep 17 00:00:00 2001 From: Matthias Neid Date: Thu, 17 Aug 2023 11:14:19 +0200 Subject: [PATCH] return after handling php 8.1.22/8.2.9 --- src/Pool.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Pool.php b/src/Pool.php index 91ee6d3..8fce68d 100644 --- a/src/Pool.php +++ b/src/Pool.php @@ -307,15 +307,16 @@ protected function registerListener() pcntl_signal(SIGCHLD, function ($signo, $status) { /** - * PHP 8.1.22 and 8.2.9 fixed SIGCHLD handling: + * PHP 8.1.22 and 8.2.9 changed SIGCHLD handling: * https://github.com/php/php-src/pull/11509 - * This breaks pcntl_waitpid() at the same time, so it requires special handling. + * This changes pcntl_waitpid() at the same time, so it requires special handling. * * It was reverted already and probably won't work in any other PHP version. * https://github.com/php/php-src/pull/11863 */ if (phpversion() === '8.1.22' || phpversion() === '8.2.9') { $this->handleFinishedProcess($status['pid'], $status['status']); + return; } while (true) {