mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 00:47:10 +09:00
process-util: ensure pidref_is_alive only return ESRCH if not set
This commit is contained in:
@@ -1112,8 +1112,10 @@ int pidref_is_alive(const PidRef *pidref) {
|
||||
return -ESRCH;
|
||||
|
||||
result = pid_is_alive(pidref->pid);
|
||||
if (result < 0)
|
||||
if (result < 0) {
|
||||
assert(result != -ESRCH);
|
||||
return result;
|
||||
}
|
||||
|
||||
r = pidref_verify(pidref);
|
||||
if (r == -ESRCH)
|
||||
|
||||
Reference in New Issue
Block a user