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)
pid_t* pidList;
pidList = findPidByName( *argv);
+ if (!pidList)
+ errorMsg( "%s: no process killed\n", *argv);
+
for(; pidList && *pidList!=0; pidList++) {
if (*pidList==myPid)
continue;