Page MenuHomeFreeBSD

Set the oppid field of orphans when exiting.
ClosedPublic

Authored by markj on Apr 5 2019, 12:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Sep 30, 4:46 AM
Unknown Object (File)
Thu, Sep 25, 3:14 PM
Unknown Object (File)
Thu, Sep 25, 6:25 AM
Unknown Object (File)
Mon, Sep 22, 4:35 AM
Unknown Object (File)
Fri, Sep 19, 5:32 PM
Unknown Object (File)
Sep 18 2025, 7:02 PM
Unknown Object (File)
Aug 30 2025, 3:09 AM
Unknown Object (File)
Jul 24 2025, 3:35 PM
Subscribers

Details

Summary

Such processes will be reparented to the reaper when the current parent
is done with them; oppid must be updated accordingly. Otherwise, the
p->p_oppid != p->p_pptr->p_pid check in proc_reap() will always fail.

Test Plan

Peter tested the patch.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable