Page MenuHomeFreeBSD

stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U' change
ClosedPublic

Authored by olce on May 6 2025, 4:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 1, 5:14 PM
Unknown Object (File)
Mon, Jun 30, 3:20 AM
Unknown Object (File)
Sun, Jun 29, 12:18 AM
Unknown Object (File)
Fri, Jun 27, 8:08 AM
Unknown Object (File)
Fri, Jun 27, 2:42 AM
Unknown Object (File)
Sat, Jun 21, 1:56 PM
Unknown Object (File)
Fri, Jun 20, 11:13 PM
Unknown Object (File)
Thu, Jun 19, 12:59 PM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.May 6 2025, 4:59 PM
This revision was not accepted when it landed; it landed in state Needs Review.May 7 2025, 9:16 AM
This revision was automatically updated to reflect the committed changes.
In D50200#1145643, @pho wrote:

Looks good to me.

Great. Sorry, I committed this quite quickly as it's a very small change that I'd like to be MFCed soon and put into 14.3, else I would have waited more for you.

In D50200#1145643, @pho wrote:

Looks good to me.

Great. Sorry, I committed this quite quickly as it's a very small change that I'd like to be MFCed soon and put into 14.3, else I would have waited more for you.

No problem! I accepted your change yesterday, but forgot to press "Submit" :)