Page MenuHomeFreeBSD

rc/tests: Fix process flags checks using ps(1)
ClosedPublic

Authored by olce on May 6 2025, 4:59 PM.
Tags
None
Referenced Files
F163399195: D50201.id155038.diff
Wed, Jul 22, 8:57 PM
F163349397: D50201.id154962.diff
Wed, Jul 22, 9:43 AM
Unknown Object (File)
Sat, Jul 18, 3:03 PM
Unknown Object (File)
Wed, Jul 15, 8:43 PM
Unknown Object (File)
Sun, Jul 12, 3:00 AM
Unknown Object (File)
Thu, Jul 9, 2:12 PM
Unknown Object (File)
Thu, Jun 25, 12:44 PM
Unknown Object (File)
Jun 23 2026, 1:57 AM
Subscribers

Details

Summary

These checks use ps(1) with both the '-p' and '-a' flags, which worked
so far as ps(1)'s '-a' option was buggy. Since the fix in commit
"ps(1): Make '-a' and '-A' always show all processes"
(93a94ce731a89b56), such a command-line always selects all processes,
making the specified '-p' useless and the test wrong. Remove the useless '-p'.

While here, remove the redundant '-x', as '-p' implies '-x' by default.

Diff Detail

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