aboutsummaryrefslogtreecommitdiff
path: root/procps
diff options
context:
space:
mode:
Diffstat (limited to 'procps')
-rw-r--r--procps/kill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/procps/kill.c b/procps/kill.c
index 0ba6d76ce..e72b73493 100644
--- a/procps/kill.c
+++ b/procps/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);