HomeFreeBSD

Reparent a child of pdfork(2) to its reaper when the procdesc is closed.

Description

Reparent a child of pdfork(2) to its reaper when the procdesc is closed.

Unconditionally reparenting to PID 1 breaks the procctl(2) reaper
functionality.

Add a regression test for this case.

Reviewed by: kib
Approved by: re (gjb)
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17589

Details

Provenance
markjAuthored on
Reviewer
kib
Differential Revision
D17589: Reparent to the process' reaper when a procdesc is closed.
Parents
rS339389: MFC r327254, r327904, and r328994.
Branches
Unknown
Tags
Unknown