diff options
| author | David Xu <davidxu@FreeBSD.org> | 2008-10-15 06:31:37 +0000 |
|---|---|---|
| committer | David Xu <davidxu@FreeBSD.org> | 2008-10-15 06:31:37 +0000 |
| commit | 904c5ec4e3329b6df906f0ac7fb3966c82b766b8 (patch) | |
| tree | b5ea5e6ee198214fb2b60f739b585b03f37900b2 /sys/kern/kern_thread.c | |
| parent | fc7a9640c7c71aca12239760b6d19ba287dbf728 (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_thread.c')
| -rw-r--r-- | sys/kern/kern_thread.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index bb87696a4c58..7298edc5943c 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -563,8 +563,6 @@ thread_single(int mode) if (TD_IS_INHIBITED(td2)) { switch (mode) { case SINGLE_EXIT: - if (td->td_flags & TDF_DBSUSPEND) - td->td_flags &= ~TDF_DBSUSPEND; if (TD_IS_SUSPENDED(td2)) wakeup_swapper |= thread_unsuspend_one(td2); @@ -685,7 +683,7 @@ thread_suspend_check(int return_instead) mtx_assert(&Giant, MA_NOTOWNED); PROC_LOCK_ASSERT(p, MA_OWNED); while (P_SHOULDSTOP(p) || - ((p->p_flag & P_TRACED) && (td->td_flags & TDF_DBSUSPEND))) { + ((p->p_flag & P_TRACED) && (td->td_dbgflags & TDB_SUSPEND))) { if (P_SHOULDSTOP(p) == P_STOPPED_SINGLE) { KASSERT(p->p_singlethread != NULL, ("singlethread not set")); |
