Merge pull request #30610 from YHNdnzj/logind-serialize-pidref

logind: serialize session leader pidfd to fdstore
This commit is contained in:
Yu Watanabe
2024-01-04 23:25:18 +09:00
committed by GitHub
7 changed files with 292 additions and 194 deletions
+3 -1
View File
@@ -1188,8 +1188,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)