diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-07-23 23:44:40 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-07-23 23:44:40 +0200 |
commit | a644184a177caa709e1bb784e4f169101194b610 (patch) | |
tree | 8cda82d8e5512466fb35ca91cdae24153f5590db /src/basic/MurmurHash2.c | |
parent | 901108257e3b1da07033f4e6e053b5be42b1c8b0 (diff) |
process: return ESRCH when a PID is not valid anymore
so far, when we read something from /proc/$PID we would pass on the
ENOENT from the kernel as error, if the process was missing. With this
change we systematically convert this to ESRCH, which is the more
appropriate error code, and what all the other glibc/syscalls like
kill() use.
All code that calls these functions should be fine with this change. In
fact, one invocation of get_process_exe() in bus-creds.c already assumed
ESRCH would be returned if a process is missing, and this assumption is
now validated after the change.
Diffstat (limited to 'src/basic/MurmurHash2.c')
0 files changed, 0 insertions, 0 deletions