diff options
author | Eric Andersen | 2004-08-19 18:26:26 +0000 |
---|---|---|
committer | Eric Andersen | 2004-08-19 18:26:26 +0000 |
commit | a4fcccefa6fda72c0b73f4ef9f391dd5f1f74602 (patch) | |
tree | 798b0521d72a165e28821efde6ab8ad721bf9903 /procps | |
parent | b131db43261ed8f89537ec7a246b1b274da8539b (diff) | |
download | busybox-a4fcccefa6fda72c0b73f4ef9f391dd5f1f74602.zip busybox-a4fcccefa6fda72c0b73f4ef9f391dd5f1f74602.tar.gz |
Patch from Tito adding support for '-q'
Diffstat (limited to 'procps')
-rw-r--r-- | procps/kill.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/procps/kill.c b/procps/kill.c index a07855e..25a8d01 100644 --- a/procps/kill.c +++ b/procps/kill.c @@ -37,11 +37,12 @@ extern int kill_main(int argc, char **argv) { - int whichApp, signo = SIGTERM, quiet = 0; + int whichApp, signo = SIGTERM; const char *name; int errors = 0; #ifdef CONFIG_KILLALL + int quiet=0; /* Figure out what we are trying to do here */ whichApp = (strcmp(bb_applet_name, "killall") == 0)? KILLALL : KILL; #else @@ -86,6 +87,7 @@ extern int kill_main(int argc, char **argv) return EXIT_SUCCESS; } +#ifdef CONFIG_KILLALL /* The -q quiet option */ if(argv[1][1]=='q' && argv[1][2]=='\0'){ quiet++; @@ -95,6 +97,7 @@ extern int kill_main(int argc, char **argv) goto do_it_now; } } +#endif if(!u_signal_names(argv[1]+1, &signo, 0)) bb_error_msg_and_die( "bad signal name '%s'", argv[1]+1); |