HomeFreeBSD

rfork(2): add RFSPAWN flag

Description

rfork(2): add RFSPAWN flag

When RFSPAWN is passed, rfork exhibits vfork(2) semantics but also resets
signal handlers in the child during creation to avoid a point of corruption
of parent state from the child.

This flag will be used by posix_spawn(3) to handle potential signal issues.

Reviewed by: jilles, kib
Differential Revision: https://reviews.freebsd.org/D19058

Details

Committed
kevansSep 25 2019, 7:20 PM
Reviewer
jilles
Differential Revision
D19058: posix_spawn(3): handle potential signal issues with vfork
Parents
rS352710: Do not left-shift a negative number (inducing undefined behavior in
Branches
Unknown
Tags
Unknown