diff options
author | mini <mini@FreeBSD.org> | 2002-05-09 04:13:41 +0000 |
---|---|---|
committer | mini <mini@FreeBSD.org> | 2002-05-09 04:13:41 +0000 |
commit | b6d1cd6b33e9d941abd387b6b03841797624e220 (patch) | |
tree | 150c728d41ab4d075b161cc20b4d6815f93fab73 /sys/kern/kern_sig.c | |
parent | eff7d935338f3a558b05c829782f6205c4912c65 (diff) | |
download | FreeBSD-src-b6d1cd6b33e9d941abd387b6b03841797624e220.zip FreeBSD-src-b6d1cd6b33e9d941abd387b6b03841797624e220.tar.gz |
Remove trace_req().
Reviewed by: alfred, jhb, peter
Diffstat (limited to 'sys/kern/kern_sig.c')
-rw-r--r-- | sys/kern/kern_sig.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 618b078..83182d9 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1569,25 +1569,21 @@ issignal(p) } if (p->p_flag & P_TRACED && (p->p_flag & P_PPWAIT) == 0) { /* - * If traced, always stop, and stay - * stopped until released by the parent. + * If traced, always stop. */ p->p_xstat = sig; PROC_LOCK(p->p_pptr); psignal(p->p_pptr, SIGCHLD); PROC_UNLOCK(p->p_pptr); - do { - mtx_lock_spin(&sched_lock); - stop(p); - PROC_UNLOCK(p); - DROP_GIANT(); - p->p_stats->p_ru.ru_nivcsw++; - mi_switch(); - mtx_unlock_spin(&sched_lock); - PICKUP_GIANT(); - PROC_LOCK(p); - } while (!trace_req(p) - && p->p_flag & P_TRACED); + mtx_lock_spin(&sched_lock); + stop(p); + PROC_UNLOCK(p); + DROP_GIANT(); + p->p_stats->p_ru.ru_nivcsw++; + mi_switch(); + mtx_unlock_spin(&sched_lock); + PICKUP_GIANT(); + PROC_LOCK(p); /* * If the traced bit got turned off, go back up |