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 | |
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')
-rw-r--r-- | sys/kern/kern_sig.c | 24 | ||||
-rw-r--r-- | sys/kern/sys_process.c | 7 |
2 files changed, 10 insertions, 21 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 diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index bd684f6..6faf442 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -707,13 +707,6 @@ fail: return (error); } -int -trace_req(struct proc *p) -{ - - return (1); -} - /* * Stop a process because of a debugging event; * stay stopped until p->p_step is cleared |