mirror of
https://github.com/php/php-src.git
synced 2026-04-24 00:18:23 +02:00
Revert "Merge branch 'fix-pro_nice-test' of https://github.com/reeze/php-src into PHP-5.3"
After pushed, I found the test script in 5.4 is already fixed this, so revert this change, and be consistent with 5.4's test This reverts commit24d85e4bd8, reversing changes made tobae56a87f8.
This commit is contained in:
@@ -13,7 +13,7 @@ if(!function_exists('proc_nice')) die("skip. proc_nice not available ");
|
||||
<?php
|
||||
function getNice($id)
|
||||
{
|
||||
$res = shell_exec('ps -p ' . $id .' -o pid -o ni');
|
||||
$res = shell_exec('ps -p ' . $id .' -o "%p %n"');
|
||||
preg_match('/^\s*\w+\s+\w+\s*(\d+)\s+(\d+)/m', $res, $matches);
|
||||
if (count($matches) > 2)
|
||||
return $matches[2];
|
||||
|
||||
Reference in New Issue
Block a user