From 2f27a3ea73e5f5120961b17926b6759d7ce7401c Mon Sep 17 00:00:00 2001 From: lazerg Date: Sun, 25 Oct 2026 22:21:50 +0500 Subject: [PATCH] Fix GH-24695: FPM tester sends signal to process group when PID is missing 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 8e67d17430a6..c98252292489 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);