summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2017-02-08 20:58:30 +0000
committerguenther <guenther@openbsd.org>2017-02-08 20:58:30 +0000
commit58d298927afa44b2ca4a8979012796027d4b8803 (patch)
tree5e2ee96c015ae23a85270f42d5972dac56f03830 /sys/kern/kern_exit.c
parentAvoid printf %s NULL. From semarie@, OK djm@ (diff)
downloadwireguard-openbsd-58d298927afa44b2ca4a8979012796027d4b8803.tar.xz
wireguard-openbsd-58d298927afa44b2ca4a8979012796027d4b8803.zip
Delete the obsolete fork/exec/exit emulation hooks.
ok mpi@ dlg@
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 5d0f0915fad..050369baa4f 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit.c,v 1.158 2016/11/07 00:26:32 guenther Exp $ */
+/* $OpenBSD: kern_exit.c,v 1.159 2017/02/08 20:58:30 guenther Exp $ */
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
/*
@@ -242,12 +242,6 @@ exit1(struct proc *p, int rv, int flags)
p->p_fd = NULL; /* zap the thread's copy */
- /*
- * If emulation has thread exit hook, call it now.
- */
- if (pr->ps_emul->e_proc_exit)
- (*pr->ps_emul->e_proc_exit)(p);
-
/*
* Remove proc from pidhash chain and allproc so looking
* it up won't work. We will put the proc on the