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 | |
parent | eff7d935338f3a558b05c829782f6205c4912c65 (diff) | |
download | FreeBSD-src-b6d1cd6b33e9d941abd387b6b03841797624e220.zip FreeBSD-src-b6d1cd6b33e9d941abd387b6b03841797624e220.tar.gz |
Remove trace_req().
Reviewed by: alfred, jhb, peter
-rw-r--r-- | sys/kern/kern_sig.c | 24 | ||||
-rw-r--r-- | sys/kern/sys_process.c | 7 | ||||
-rw-r--r-- | sys/sys/proc.h | 1 |
3 files changed, 10 insertions, 22 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 diff --git a/sys/sys/proc.h b/sys/sys/proc.h index f4259f4..ec769b8 100644 --- a/sys/sys/proc.h +++ b/sys/sys/proc.h @@ -752,7 +752,6 @@ void cpu_exit(struct thread *); void exit1(struct thread *, int) __dead2; void cpu_fork(struct thread *, struct proc *, struct thread *, int); void cpu_set_fork_handler(struct thread *, void (*)(void *), void *); -int trace_req(struct proc *); void cpu_wait(struct proc *); int cpu_coredump(struct thread *, struct vnode *, struct ucred *); struct thread *thread_get(struct proc *); |