mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
process-util: a process from a foreign pidns is definitely not our child
Addresses: https://github.com/systemd/systemd/pull/35242#pullrequestreview-2531712318
This commit is contained in:
@@ -1096,6 +1096,8 @@ int pidref_is_my_child(const PidRef *pid) {
|
||||
|
||||
pid_t ppid;
|
||||
r = pidref_get_ppid(pid, &ppid);
|
||||
if (r == -EADDRNOTAVAIL) /* if this process is outside of our pidns, it is definitely not our child */
|
||||
return false;
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user