diff options
Diffstat (limited to 'kill.c')
-rw-r--r-- | kill.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -204,10 +204,10 @@ extern int kill_main(int argc, char **argv) | |||
204 | int pid; | 204 | int pid; |
205 | 205 | ||
206 | if (!isdigit(**argv)) | 206 | if (!isdigit(**argv)) |
207 | error_msg_and_die( "Bad PID: %s\n", strerror(errno)); | 207 | perror_msg_and_die( "Bad PID"); |
208 | pid = strtol(*argv, NULL, 0); | 208 | pid = strtol(*argv, NULL, 0); |
209 | if (kill(pid, sig) != 0) | 209 | if (kill(pid, sig) != 0) |
210 | error_msg_and_die( "Could not kill pid '%d': %s\n", pid, strerror(errno)); | 210 | perror_msg_and_die( "Could not kill pid '%d'", pid); |
211 | argv++; | 211 | argv++; |
212 | } | 212 | } |
213 | } | 213 | } |
@@ -229,7 +229,7 @@ extern int kill_main(int argc, char **argv) | |||
229 | if (*pidList==myPid) | 229 | if (*pidList==myPid) |
230 | continue; | 230 | continue; |
231 | if (kill(*pidList, sig) != 0) | 231 | if (kill(*pidList, sig) != 0) |
232 | error_msg_and_die( "Could not kill pid '%d': %s\n", *pidList, strerror(errno)); | 232 | perror_msg_and_die( "Could not kill pid '%d'", *pidList); |
233 | } | 233 | } |
234 | /* Note that we don't bother to free the memory | 234 | /* Note that we don't bother to free the memory |
235 | * allocated in find_pid_by_name(). It will be freed | 235 | * allocated in find_pid_by_name(). It will be freed |