summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2018-11-12 15:09:17 +0000
committervisa <visa@openbsd.org>2018-11-12 15:09:17 +0000
commite0e8a7c4892bc434a32dba76ca02883f9b1071d1 (patch)
tree6e775ad33122da8163703582cf93772d54dbfdd6 /sys/kern/kern_fork.c
parentAllow style #[] in mode formats. (diff)
downloadwireguard-openbsd-e0e8a7c4892bc434a32dba76ca02883f9b1071d1.tar.xz
wireguard-openbsd-e0e8a7c4892bc434a32dba76ca02883f9b1071d1.zip
Add a mechanism for managing asynchronous IO signal registrations.
It centralizes IO signal privilege checking and makes possible to revoke a registration when the target process or process group is deleted. Adapted from FreeBSD. OK kettenis@ mpi@ guenther@
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 93d80d221ae..dd26b0ac5c8 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.207 2018/08/30 03:30:25 visa Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.208 2018/11/12 15:09:17 visa Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -208,6 +208,7 @@ process_initialize(struct process *pr, struct proc *p)
LIST_INIT(&pr->ps_children);
LIST_INIT(&pr->ps_ftlist);
LIST_INIT(&pr->ps_kqlist);
+ LIST_INIT(&pr->ps_sigiolst);
timeout_set(&pr->ps_realit_to, realitexpire, pr);
}