aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/proc.h
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2019-09-25 19:20:41 +0000
committerKyle Evans <kevans@FreeBSD.org>2019-09-25 19:20:41 +0000
commit079c5b9ed809af6dec664accc70119a4ef989420 (patch)
tree5efcf1bdba3006d2614d5720c66190a3fecb9576 /sys/sys/proc.h
parent5763a8cf06a297c067aa7af13973f50ab44c2a4d (diff)
downloadsrc-079c5b9ed809af6dec664accc70119a4ef989420.tar.gz
src-079c5b9ed809af6dec664accc70119a4ef989420.zip
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
Notes
Notes: svn path=/head/; revision=352711
Diffstat (limited to 'sys/sys/proc.h')
-rw-r--r--sys/sys/proc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 8edca8ad889b..36424d51bc78 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -1006,6 +1006,8 @@ struct fork_req {
int *fr_pd_fd;
int fr_pd_flags;
struct filecaps *fr_pd_fcaps;
+ int fr_flags2;
+#define FR2_DROPSIG_CAUGHT 0x00001 /* Drop caught non-DFL signals */
};
/*