]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a knob to disable dequeueing SIGCHLD on waiting for live process
authorKonstantin Belousov <kib@FreeBSD.org>
Sat, 5 Jun 2021 18:24:35 +0000 (21:24 +0300)
committerKonstantin Belousov <kib@FreeBSD.org>
Tue, 15 Jun 2021 23:00:19 +0000 (02:00 +0300)
commita12e901a5a65417849c1ccf1e37b8d092fa438da
treef1c86f7c65f59fa4edb7eea01cb3903eb081f576
parentbc38762474caed2d41d2562e28f56aa211f47ceb
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
sys/kern/kern_exit.c
sys/sys/sysent.h