aboutsummaryrefslogtreecommitdiff
path: root/kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'kill.c')
-rw-r--r--kill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kill.c b/kill.c
index 0ba6d76ce..e72b73493 100644
--- a/kill.c
+++ b/kill.c
@@ -183,7 +183,7 @@ extern int kill_main (int argc, char **argv)
183 183
184do_it_now: 184do_it_now:
185 185
186 while (argc >= 1) { 186 while (--argc >= 0) {
187 int pid; 187 int pid;
188 struct stat statbuf; 188 struct stat statbuf;
189 char pidpath[20]="/proc/"; 189 char pidpath[20]="/proc/";
@@ -198,6 +198,7 @@ do_it_now:
198 fprintf(stderr, "kill: (%d) - No such pid\n", pid); 198 fprintf(stderr, "kill: (%d) - No such pid\n", pid);
199 exit( FALSE); 199 exit( FALSE);
200 } 200 }
201 fprintf(stderr, "sig = %d\n", sig);
201 if (kill (pid, sig) != 0) { 202 if (kill (pid, sig) != 0) {
202 perror (*argv); 203 perror (*argv);
203 exit ( FALSE); 204 exit ( FALSE);