mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.2'
* PHP-8.2: Attempt to fix gh11498.phpt on MSAN
This commit is contained in:
@@ -19,7 +19,8 @@ pcntl_signal(SIGCHLD, function($sig, $info) use (&$processes) {
|
||||
}, false);
|
||||
|
||||
for ($i = 0; $i <= 5; $i++) {
|
||||
$process = proc_open('echo $$ > /dev/null', [], $pipes);
|
||||
// Sleeping ensures we get to add the process to the list before the signal is invoked.
|
||||
$process = proc_open('sleep 1', [], $pipes);
|
||||
$pid = proc_get_status($process)['pid'];
|
||||
$processes[$pid] = $process;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user