aboutsummaryrefslogtreecommitdiff
path: root/toys/kill.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-02-26 16:11:25 -0600
committerRob Landley <rob@landley.net>2012-02-26 16:11:25 -0600
commitb081ce98999111aa5518388ed7eb8e5ceb5629f9 (patch)
treec77a18ab860a7ee9a33fe8830a8b1bc3d05c5d44 /toys/kill.c
parent2dd50adc460e63c57eddb696f908dd6b1abfd723 (diff)
downloadtoybox-b081ce98999111aa5518388ed7eb8e5ceb5629f9.tar.gz
Teach lib/args.c that " " this option must take a _separate_ argument, so "kill -stop" and "kill -s top" aren't the same thing. Make kill.c use it, and remove leftover debug printfs.
Diffstat (limited to 'toys/kill.c')
-rw-r--r--toys/kill.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/toys/kill.c b/toys/kill.c
index d9beda33..e64a146b 100644
--- a/toys/kill.c
+++ b/toys/kill.c
@@ -6,7 +6,7 @@
*
* See http://opengroup.org/onlinepubs/9699919799/utilities/kill.html
-USE_KILL(NEWTOY(kill, "?s:l", TOYFLAG_BIN))
+USE_KILL(NEWTOY(kill, "?s: l", TOYFLAG_BIN))
config KILL
bool "kill"
@@ -45,10 +45,8 @@ void kill_main(void)
}
// signal must come before pids, so "kill -9 -1" isn't confusing.
-printf("*args=%s\n", *args);
if (!TT.signame && *args && **args=='-') TT.signame=*(args++)+1;
-printf("TT.signame=%s\n", TT.signame);
if (TT.signame) {
char *arg;
int i = strtol(TT.signame, &arg, 10);