summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.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_exec.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_exec.c')
-rw-r--r--sys/kern/kern_exec.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 162313d55e4..71c068a9348 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exec.c,v 1.45 2000/11/10 18:15:46 art Exp $ */
+/* $OpenBSD: kern_exec.c,v 1.46 2000/11/16 20:02:16 provos Exp $ */
/* $NetBSD: kern_exec.c,v 1.75 1996/02/09 18:59:28 christos Exp $ */
/*-
@@ -599,6 +599,11 @@ sys_execve(p, v, retval)
VOP_CLOSE(pack.ep_vp, FREAD, cred, p);
vput(pack.ep_vp);
+ /*
+ * notify others that we exec'd
+ */
+ KNOTE(&p->p_klist, NOTE_EXEC);
+
/* setup new registers and do misc. setup. */
if(pack.ep_emul->e_fixup != NULL) {
if((*pack.ep_emul->e_fixup)(p, &pack) != 0)