projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdb871c
)
close bug 638
author
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Wed, 25 Jan 2006 13:21:08 +0000
(13:21 -0000)
committer
"Vladimir N. Oleynik"
<dzo@simtreas.ru>
Wed, 25 Jan 2006 13:21:08 +0000
(13:21 -0000)
procps/kill.c
patch
|
blob
|
history
diff --git
a/procps/kill.c
b/procps/kill.c
index 2d4e6deb4d0f4320223ed996c93b202c71893a73..ff620eef43d4d864d532a6a18dc1c10c739fc159 100644
(file)
--- a/
procps/kill.c
+++ b/
procps/kill.c
@@
-89,7
+89,7
@@
extern int kill_main(int argc, char **argv)
#ifdef CONFIG_KILLALL
/* The -q quiet option */
- if(argv[1][1]=='q' && argv[1][2]=='\0'){
+ if(
whichApp != KILL &&
argv[1][1]=='q' && argv[1][2]=='\0'){
quiet++;
argv++;
argc--;
@@
-106,6
+106,10
@@
extern int kill_main(int argc, char **argv)
do_it_now:
+ /* Pid or name required */
+ if (argc <= 0)
+ bb_show_usage();
+
if (whichApp == KILL) {
/* Looks like they want to do a kill. Do that */
while (--argc >= 0) {