summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2020-01-06 10:25:10 +0000
committervisa <visa@openbsd.org>2020-01-06 10:25:10 +0000
commite6dd1245fe4fa6ea7f45a80ace4c6dcbd137fd95 (patch)
tree7bf668e702e4267275fb2c36ed58bc6b627ba5a6 /sys/kern/kern_fork.c
parentput the fido options in a list, and tidy up the text a little; (diff)
downloadwireguard-openbsd-e6dd1245fe4fa6ea7f45a80ace4c6dcbd137fd95.tar.xz
wireguard-openbsd-e6dd1245fe4fa6ea7f45a80ace4c6dcbd137fd95.zip
Make kqlist part of filedesc and serialize access to it using fdplock.
This choice of locking is guided by knote_fdclose(). OK mpi@, anton@
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 40af55196ee..a9eebaaa35c 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.219 2019/12/19 17:40:11 mpi Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.220 2020/01/06 10:25:10 visa Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -190,7 +190,6 @@ 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);
mtx_init(&pr->ps_mtx, IPL_MPFLOOR);