Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 May 2025 12:42:43 GMT
From:      Olivier Certner <olce@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 10e6bac460af - releng/14.3 - stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U' change
Message-ID:  <202505131242.54DCgh30072693@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch releng/14.3 has been updated by olce:

URL: https://cgit.FreeBSD.org/src/commit/?id=10e6bac460af8482361ffafaada5776d39645675

commit 10e6bac460af8482361ffafaada5776d39645675
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2025-05-06 14:43:33 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2025-05-13 12:41:32 +0000

    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
    
    (cherry picked from commit 1265d3b07eaa418e9c60800db93f3482ddbb6ae2)
    (cherry picked from commit 5af18707c155dca74071aa3bfb61160814f03bc3)
    
    Approved by:    re (cperciva)
---
 tools/test/stress2/misc/exlock2.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/test/stress2/misc/exlock2.sh b/tools/test/stress2/misc/exlock2.sh
index 58a49919d86a..292e60e8d9f6 100755
--- a/tools/test/stress2/misc/exlock2.sh
+++ b/tools/test/stress2/misc/exlock2.sh
@@ -153,7 +153,7 @@ out:
 	}
 #if defined(DEBUG)
 	if (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");
 	}
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505131242.54DCgh30072693>