mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U' change
Remove '-Uroot', as now '-U' selects processes based on their real user IDs, and since the program using them was launched as 'root', the equivalent now is just to remove it, as now ps(1) by default selects processes based on its effective UID (root) and their effective UIDs. It seems that matching on effective or real UID does not really matter in this test, but at least this change simplifies the command-line. MFC after: 1 day Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D50200
This commit is contained in:
parent
6463754087
commit
1265d3b07e
1 changed files with 1 additions and 1 deletions
|
|
@ -150,7 +150,7 @@ out:
|
|||
usleep(100);
|
||||
}
|
||||
if (debug != 0 && e != 0)
|
||||
system("ps -Uroot | grep -v grep | grep /tmp/exlock2 | "\
|
||||
system("ps | grep -v grep | grep /tmp/exlock2 | "\
|
||||
"awk '{print $1}' | xargs procstat -f");
|
||||
share[SYNC] = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue