aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2025-05-06 14:43:33 +0000
committerOlivier Certner <olce@FreeBSD.org>2025-05-07 09:14:55 +0000
commit1265d3b07eaa418e9c60800db93f3482ddbb6ae2 (patch)
treeda2a3e0f473cc1a031d2a77428ebd90e954456cd
parent646375408742dd5ed9abb174a621a3f8f65a56ef (diff)
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
-rwxr-xr-xtools/test/stress2/misc/exlock2.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/stress2/misc/exlock2.sh b/tools/test/stress2/misc/exlock2.sh
index e1760cc52a4d..85f606aec2b3 100755
--- a/tools/test/stress2/misc/exlock2.sh
+++ b/tools/test/stress2/misc/exlock2.sh
@@ -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;