Skip to content

Commit 28117d7

Browse files
committed
Merge branch 'PHP-8.2'
* PHP-8.2: Attempt to fix gh11498.phpt on MSAN
2 parents 49ef6e2 + 04cd885 commit 28117d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/pcntl/tests/gh11498.phpt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ pcntl_signal(SIGCHLD, function($sig, $info) use (&$processes) {
1919
}, false);
2020

2121
for ($i = 0; $i <= 5; $i++) {
22-
$process = proc_open('echo $$ > /dev/null', [], $pipes);
22+
// Sleeping ensures we get to add the process to the list before the signal is invoked.
23+
$process = proc_open('sleep 1', [], $pipes);
2324
$pid = proc_get_status($process)['pid'];
2425
$processes[$pid] = $process;
2526
}

0 commit comments

Comments
 (0)