From 588257e810a21477b7e8152909a1f9d6336c9ff1 Mon Sep 17 00:00:00 2001 From: David Xu Date: Sat, 19 Apr 2003 04:39:10 +0000 Subject: [PATCH] Use correct thread pointer. --- sys/kern/kern_kse.c | 2 +- sys/kern/kern_thread.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_kse.c b/sys/kern/kern_kse.c index cb9157771256..02769b1718fd 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -1842,7 +1842,7 @@ thread_single(int force_exit) FOREACH_THREAD_IN_PROC(p, td2) { if (td2 == td) continue; - td->td_flags |= TDF_ASTPENDING; + td2->td_flags |= TDF_ASTPENDING; if (TD_IS_INHIBITED(td2)) { if (force_exit == SINGLE_EXIT) { if (TD_IS_SUSPENDED(td2)) { diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index cb9157771256..02769b1718fd 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1842,7 +1842,7 @@ thread_single(int force_exit) FOREACH_THREAD_IN_PROC(p, td2) { if (td2 == td) continue; - td->td_flags |= TDF_ASTPENDING; + td2->td_flags |= TDF_ASTPENDING; if (TD_IS_INHIBITED(td2)) { if (force_exit == SINGLE_EXIT) { if (TD_IS_SUSPENDED(td2)) {