summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Down <chris@chrisdown.name>2022-11-01 00:46:18 +0000
committerCraig Small <csmall@dropbear.xyz>2022-11-09 10:51:12 +0000
commitc92da2adc5d8bb4282ca210e4a20a552daa00c42 (patch)
tree41743ead94b0b06231bb5b47c0d28a11cc44839d /src
parentd9c3e3676d86094abaa239b3218f57bf49d70b4f (diff)
downloadprocps-ng-c92da2adc5d8bb4282ca210e4a20a552daa00c42.tar.gz
pkill: Don't show --echo twice
Commit c8384e682c1c ("pgrep: add pwait") changed from the old i_am_pkill logic, but mistakenly missed a break in the pkill case. This results in showing -e/--echo twice when running `pkill -h'. Signed-off-by: Chris Down <chris@chrisdown.name>
Diffstat (limited to 'src')
-rw-r--r--src/pgrep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pgrep.c b/src/pgrep.c
index 1c15981..eeebf3e 100644
--- a/src/pgrep.c
+++ b/src/pgrep.c
@@ -160,6 +160,7 @@ static int __attribute__ ((__noreturn__)) usage(int opt)
fputs(_(" -<sig>, --signal <sig> signal to send (either number or name)\n"), fp);
fputs(_(" -q, --queue <value> integer value to be sent with the signal\n"), fp);
fputs(_(" -e, --echo display what is killed\n"), fp);
+ break;
#ifdef ENABLE_PIDWAIT
case PIDWAIT:
fputs(_(" -e, --echo display PIDs before waiting\n"), fp);