HomeFreeBSD

reap_kill_proc(): avoid singlethreading any other process if we are exiting

Description

reap_kill_proc(): avoid singlethreading any other process if we are exiting

This is racy because curproc process lock is not used, but allows the
process to exit faster. It is userspace issue to create such race
anyway, and not fullfilling the guarantee that all reaper descendants
are signalled should be fine.

In collaboration with: pho
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D35310

Details

Provenance
kibAuthored on May 16 2022, 11:47 PM
Reviewer
markj
Differential Revision
D35310: Set of fixes for REAP_KILL_SUBTREE
Parents
rGe0343eacf365: reap_kill_subtree(): hold the reaper when entering it into the queue to handle…
Branches
Unknown
Tags
Unknown