aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sysent.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2021-06-05 18:24:35 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2021-06-15 23:00:19 +0000
commita12e901a5a65417849c1ccf1e37b8d092fa438da (patch)
treef1c86f7c65f59fa4edb7eea01cb3903eb081f576 /sys/sys/sysent.h
parentbc38762474caed2d41d2562e28f56aa211f47ceb (diff)
downloadsrc-a12e901a5a65417849c1ccf1e37b8d092fa438da.tar.gz
src-a12e901a5a65417849c1ccf1e37b8d092fa438da.zip
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
Diffstat (limited to 'sys/sys/sysent.h')
-rw-r--r--sys/sys/sysent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h
index 95e9dcb1a335..8b0903f7dcc0 100644
--- a/sys/sys/sysent.h
+++ b/sys/sys/sysent.h
@@ -162,6 +162,7 @@ struct sysentvec {
#define SV_ASLR 0x080000 /* ASLR allowed. */
#define SV_RNG_SEED_VER 0x100000 /* random(4) reseed generation. */
#define SV_SIG_DISCIGN 0x200000 /* Do not discard ignored signals */
+#define SV_SIG_WAITNDQ 0x400000 /* Wait does not dequeue SIGCHLD */
#define SV_ABI_MASK 0xff
#define SV_PROC_FLAG(p, x) ((p)->p_sysent->sv_flags & (x))