HomeFreeBSD

Add a knob to disable dequeueing SIGCHLD on waiting for live process

Description

Add a knob to disable dequeueing SIGCHLD on waiting for live process

It seems that Linux does not dequeue siginfo for SIGCHLD when wait*(2)
reports status of the running process. In particular, sigwaitinfo(2)
and other signal querying syscalls can observe the siginfo after wait.

FreeBSD dequeued siginfo from the beginning, so we cannot change the
default ABI to be more compatible. Still, add a knob to enable to
change to the other behavior for debugging purposes.

Reported by: dchagin
Reviewed by: dchagin, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D30675

Details

Provenance
kibAuthored on Jun 5 2021, 6:24 PM
Reviewer
dchagin
Differential Revision
D30675: Fix two issues with Linuxolator signals
Parents
rGbc38762474ca: Add a knob to not drop signal with default ignored or ignored actions
Branches
Unknown
Tags
Unknown