summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-06-15 20:08:03 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-06-15 20:08:03 +0000
commitfd293392db098cbdef234cf36ac226873023a403 (patch)
treee59a7ada274fe776e3b935c84ce23c6565a601f2 /sys/kern
parent52df452bea48eb1ed9f2774fedfbd636db4f3ad3 (diff)
Nothing sets P_FSTRACE anymore, so remove all what's left of it.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_exit.c10
-rw-r--r--sys/kern/kern_sig.c20
2 files changed, 6 insertions, 24 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index bb4c2adfc5f..04b3b75988d 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit.c,v 1.60 2006/04/06 21:43:28 mickey Exp $ */
+/* $OpenBSD: kern_exit.c,v 1.61 2006/06/15 20:08:01 miod Exp $ */
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
/*
@@ -309,17 +309,11 @@ exit1(struct proc *p, int rv, int flags)
wakeup(pp);
}
- if ((p->p_flag & P_FSTRACE) == 0 && p->p_exitsig != 0)
+ if (p->p_exitsig != 0)
psignal(p->p_pptr, P_EXITSIG(p));
wakeup(p->p_pptr);
/*
- * Notify procfs debugger
- */
- if (p->p_flag & P_FSTRACE)
- wakeup(p);
-
- /*
* Release the process's signal state.
*/
sigactsfree(p);
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 68cb16ca000..f95d021c7ae 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sig.c,v 1.83 2006/06/07 18:58:39 miod Exp $ */
+/* $OpenBSD: kern_sig.c,v 1.84 2006/06/15 20:08:01 miod Exp $ */
/* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */
/*
@@ -1040,21 +1040,9 @@ issignal(struct proc *p)
p->p_xstat = signum;
SCHED_LOCK(s); /* protect mi_switch */
- if (p->p_flag & P_FSTRACE) {
-#ifdef PROCFS
- /* procfs debugging */
- p->p_stat = SSTOP;
- wakeup(p);
- mi_switch();
-#else
- panic("procfs debugging");
-#endif
- } else {
- /* ptrace debugging */
- psignal(p->p_pptr, SIGCHLD);
- proc_stop(p);
- mi_switch();
- }
+ psignal(p->p_pptr, SIGCHLD);
+ proc_stop(p);
+ mi_switch();
SCHED_UNLOCK(s);
/*