]> granicus.if.org Git - procps-ng/commit
pgrep: Fixing regression in exitcodes
authorJaromir Capik <jcapik@redhat.com>
Wed, 2 Jul 2014 15:42:08 +0000 (17:42 +0200)
committerJaromir Capik <jcapik@redhat.com>
Wed, 2 Jul 2014 15:42:08 +0000 (17:42 +0200)
commit4ba9ff5c0df7e94d03a555ac4cec947f6fac2ba6
tree04bb428a8577d74b5cd14d4169b6f9d8d7221646
parent411d218793af1f7ef6db37b319c1b08a7ca7c9b8
pgrep: Fixing regression in exitcodes

The pgrep usage() rework commit from 26-Sep-2011 introduced
a regression in exitcodes and the pgrep tool now returns
EXIT_FAILURE (1) or even EXIT_SUCCESS (0) instead
of the documented EXIT_USAGE (2). This commit fixes
the usage() so that the exitcodes match the manual.
pgrep.c