From 810ce5e5f6e4bc64a01f998e30fd4c9418289e2c Mon Sep 17 00:00:00 2001 From: Lazizbek Ergashev Date: Tue, 27 Oct 2026 14:12:06 +0500 Subject: [PATCH] Fix GH-24695: FPM tester sends signal to process group when PID is missing (#24698) When FPM fails to start, getPid() reports the missing PID file and returns 0, and signal() then runs kill -USR2 0. That signals the whole process group and takes down run-tests.php along with the test. Now signal() returns early in that case, so the test just fails and the run keeps going. Co-authored-by: Bill Sommerfeld --- sapi/fpm/tests/tester.inc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sapi/fpm/tests/tester.inc b/sapi/fpm/tests/tester.inc index 8e67d17430a..c9825229248 100644 --- a/sapi/fpm/tests/tester.inc +++ b/sapi/fpm/tests/tester.inc @@ -1119,6 +1119,9 @@ class Tester { if (is_null($pid)) { $pid = $this->getPid(); + if ($pid === 0) { + return ''; + } } $cmd = "kill -$signal $pid"; $this->trace('Sending signal using command', $cmd, true);