aboutsummaryrefslogtreecommitdiff
path: root/kill.c
diff options
context:
space:
mode:
Diffstat (limited to 'kill.c')
-rw-r--r--kill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kill.c b/kill.c
index 0487f6a66..1f1bee48b 100644
--- a/kill.c
+++ b/kill.c
@@ -234,6 +234,9 @@ extern int kill_main(int argc, char **argv)
234 pid_t* pidList; 234 pid_t* pidList;
235 235
236 pidList = findPidByName( *argv); 236 pidList = findPidByName( *argv);
237 if (!pidList)
238 errorMsg( "%s: no process killed\n", *argv);
239
237 for(; pidList && *pidList!=0; pidList++) { 240 for(; pidList && *pidList!=0; pidList++) {
238 if (*pidList==myPid) 241 if (*pidList==myPid)
239 continue; 242 continue;