skill: warning printout for non-existing processes
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
991b8a94f0
commit
b4b73df69c
5
skill.c
5
skill.c
@ -134,9 +134,8 @@ static void check_proc(int pid, struct run_time_conf_t *run_time)
|
||||
fd = open(buf, O_RDONLY);
|
||||
if (fd == -1) {
|
||||
/* process exited maybe */
|
||||
if (pids && run_time->warnings)
|
||||
printf(_("WARNING: process %d could not be found.\n"),
|
||||
pid);
|
||||
if (run_time->warnings)
|
||||
warn(_("cannot open file %s"), buf);
|
||||
return;
|
||||
}
|
||||
fstat(fd, &statbuf);
|
||||
|
Loading…
Reference in New Issue
Block a user