mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
Merge branch 'PHP-8.1' into PHP-8.2
* PHP-8.1: support running testsuite with negative niceness (#11481)
This commit is contained in:
commit
88f6b5288f
@ -19,7 +19,7 @@ if ($exit_code !== 0) {
|
||||
function getNice($id)
|
||||
{
|
||||
$res = shell_exec('ps -p ' . $id .' -o "pid,nice"');
|
||||
preg_match('/^\s*\w+\s+\w+\s*(\d+)\s+(\d+)/m', $res, $matches);
|
||||
preg_match('/^\s*\w+\s+\w+\s*(\d+)\s+(-?\d+)/m', $res, $matches);
|
||||
if (count($matches) > 2)
|
||||
return $matches[2];
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user