aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--procps/kill.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/procps/kill.c b/procps/kill.c
index 2d4e6deb4..ff620eef4 100644
--- a/procps/kill.c
+++ b/procps/kill.c
@@ -89,7 +89,7 @@ extern int kill_main(int argc, char **argv)
89 89
90#ifdef CONFIG_KILLALL 90#ifdef CONFIG_KILLALL
91 /* The -q quiet option */ 91 /* The -q quiet option */
92 if(argv[1][1]=='q' && argv[1][2]=='\0'){ 92 if(whichApp != KILL && argv[1][1]=='q' && argv[1][2]=='\0'){
93 quiet++; 93 quiet++;
94 argv++; 94 argv++;
95 argc--; 95 argc--;
@@ -106,6 +106,10 @@ extern int kill_main(int argc, char **argv)
106 106
107do_it_now: 107do_it_now:
108 108
109 /* Pid or name required */
110 if (argc <= 0)
111 bb_show_usage();
112
109 if (whichApp == KILL) { 113 if (whichApp == KILL) {
110 /* Looks like they want to do a kill. Do that */ 114 /* Looks like they want to do a kill. Do that */
111 while (--argc >= 0) { 115 while (--argc >= 0) {