]> granicus.if.org Git - procps-ng/commitdiff
pkill: Don't show --echo twice
authorChris Down <chris@chrisdown.name>
Tue, 1 Nov 2022 00:46:18 +0000 (00:46 +0000)
committerCraig Small <csmall@dropbear.xyz>
Wed, 9 Nov 2022 10:51:12 +0000 (10:51 +0000)
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>
src/pgrep.c

index 1c15981c2a674536495cf92f5967064676464e5f..eeebf3e8e90588e462ac0d947c9bf94731bd9d35 100644 (file)
@@ -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);