]> granicus.if.org Git - procps-ng/commit
pgrep: make --terminal respect other criteria
authorJason Cox <me@jasoncarloscox.com>
Wed, 25 Jan 2023 09:34:21 +0000 (20:34 +1100)
committerCraig Small <csmall@dropbear.xyz>
Wed, 25 Jan 2023 09:34:21 +0000 (20:34 +1100)
commit848be2b1e23d4db4420dcfc15d3166073e813f4e
tree7372d710c50ea1f434d5f08bb2bf5f7602cb9c39
parent356730edbb96c73c6145103ab86445f96602ba75
pgrep: make --terminal respect other criteria

In some cases the --terminal option to pgrep will cause all processes
matching the terminal to be output, even if other criteria would exclude them.
Specifically, I noticed that it overrides the --runstates option.

Signed-off-by: Craig Small <csmall@dropbear.xyz>
NEWS
src/pgrep.c
testsuite/pgrep.test/pgrep.exp