making note of my changes.
[oweals/busybox.git] / kill.c
diff --git a/kill.c b/kill.c
index 0ba6d76cef4e04424e7ce61488feb67278248774..e72b73493928829d452ee9952cba166a399cbbfd 100644 (file)
--- a/kill.c
+++ b/kill.c
@@ -183,7 +183,7 @@ extern int kill_main (int argc, char **argv)
 
 do_it_now:
 
-    while (argc >= 1) {
+    while (--argc >= 0) {
         int pid;
        struct stat statbuf;
        char pidpath[20]="/proc/";
@@ -198,6 +198,7 @@ do_it_now:
             fprintf(stderr, "kill: (%d) - No such pid\n", pid);
             exit( FALSE);
        }
+       fprintf(stderr, "sig = %d\n", sig);
         if (kill (pid, sig) != 0) {
             perror (*argv);
             exit ( FALSE);