mirror of
https://github.com/sheumann/hush.git
synced 2024-11-05 06:07:00 +00:00
close bug 638
This commit is contained in:
parent
fdb871c498
commit
1e98a0705b
@ -89,7 +89,7 @@ extern int kill_main(int argc, char **argv)
|
|||||||
|
|
||||||
#ifdef CONFIG_KILLALL
|
#ifdef CONFIG_KILLALL
|
||||||
/* The -q quiet option */
|
/* 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++;
|
quiet++;
|
||||||
argv++;
|
argv++;
|
||||||
argc--;
|
argc--;
|
||||||
@ -106,6 +106,10 @@ extern int kill_main(int argc, char **argv)
|
|||||||
|
|
||||||
do_it_now:
|
do_it_now:
|
||||||
|
|
||||||
|
/* Pid or name required */
|
||||||
|
if (argc <= 0)
|
||||||
|
bb_show_usage();
|
||||||
|
|
||||||
if (whichApp == KILL) {
|
if (whichApp == KILL) {
|
||||||
/* Looks like they want to do a kill. Do that */
|
/* Looks like they want to do a kill. Do that */
|
||||||
while (--argc >= 0) {
|
while (--argc >= 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user