diff options
Diffstat (limited to 'procps/kill.c')
-rw-r--r-- | procps/kill.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/procps/kill.c b/procps/kill.c index 0487f6a66..1f1bee48b 100644 --- a/procps/kill.c +++ b/procps/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; |