summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorprovos <provos@openbsd.org>2000-11-16 20:02:15 +0000
committerprovos <provos@openbsd.org>2000-11-16 20:02:15 +0000
commit1a12e8a7ab11e47f6fb18cdbc03b05e8885dfcad (patch)
tree21c49b483d84ca5ca2b0b9f8491c15f7b579b1f3 /sys/kern/kern_fork.c
parentAdd uscanner.c. (diff)
downloadwireguard-openbsd-1a12e8a7ab11e47f6fb18cdbc03b05e8885dfcad.tar.xz
wireguard-openbsd-1a12e8a7ab11e47f6fb18cdbc03b05e8885dfcad.zip
support kernel event queues, from FreeBSD by Jonathan Lemon,
okay art@, millert@
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index aa7457f3e7b..3a8f4173220 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.35 2000/11/09 17:02:25 art Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.36 2000/11/16 20:02:17 provos Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -425,6 +425,11 @@ again:
#endif
/*
+ * tell any interested parties about the new process
+ */
+ KNOTE(&p1->p_klist, NOTE_FORK | p2->p_pid);
+
+ /*
* Preserve synchronization semantics of vfork. If waiting for
* child to exec or exit, set P_PPWAIT on child, and sleep on our
* proc (in case of exit).