summaryrefslogtreecommitdiff
path: root/sys/kern/kern_fork.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2016-04-25 20:00:34 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2016-04-25 20:00:34 +0000
commit999b8da572a3feeafefae44c00904a8b520dac0b (patch)
treec861b2784944b26da72b4276ed01da52be20cba0 /sys/kern/kern_fork.c
parentb05d5c9a49f53ca5b82fec6941a127b016cd0a9e (diff)
boom goes the dynamite
Diffstat (limited to 'sys/kern/kern_fork.c')
-rw-r--r--sys/kern/kern_fork.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index b4875c82b7f..16768d4e06b 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.185 2016/03/11 19:10:14 tedu Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.186 2016/04/25 20:00:33 tedu Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -63,9 +63,6 @@
#include <sys/syscallargs.h>
-#include "systrace.h"
-#include <dev/systrace.h>
-
#include <uvm/uvm.h>
#ifdef __HAVE_MD_TCB
@@ -432,10 +429,6 @@ fork1(struct proc *curp, int flags, void *stack, pid_t *tidptr,
if (pr->ps_flags & PS_TRACED && flags & FORK_FORK)
newptstat = malloc(sizeof(*newptstat), M_SUBPROC, M_WAITOK);
-#if NSYSTRACE > 0
- if (ISSET(curp->p_flag, P_SYSTRACE))
- newstrp = systrace_getproc();
-#endif
p->p_pid = allocpid();
@@ -474,11 +467,6 @@ fork1(struct proc *curp, int flags, void *stack, pid_t *tidptr,
}
}
-#if NSYSTRACE > 0
- if (newstrp)
- systrace_fork(curp, p, newstrp);
-#endif
-
if (tidptr != NULL) {
pid_t pid = p->p_pid + THREAD_PID_OFFSET;