diff options
Diffstat (limited to 'kill.c')
-rw-r--r-- | kill.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -183,7 +183,7 @@ extern int kill_main (int argc, char **argv) | |||
183 | 183 | ||
184 | do_it_now: | 184 | do_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); |