diff options
author | davidxu <davidxu@FreeBSD.org> | 2003-02-17 14:41:22 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2003-02-17 14:41:22 +0000 |
commit | 0330c190211959d649ab98e1e3d6a3e2071c6a1e (patch) | |
tree | b07c9a803001c9a3ad13efb5ecd90f9ab915fd3c /sys/kern/kern_thread.c | |
parent | 4461b7347a5ac842d81acb7d173b529b01f08cfc (diff) | |
download | FreeBSD-src-0330c190211959d649ab98e1e3d6a3e2071c6a1e.zip FreeBSD-src-0330c190211959d649ab98e1e3d6a3e2071c6a1e.tar.gz |
Move code for detecting PS_NEEDSIGCHK into thread_schedule_upcall,
I think it is a better place to handle it.
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 183b607..b682320 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1418,6 +1418,8 @@ thread_schedule_upcall(struct thread *td, struct kse_upcall *ku) ku->ku_owner = td2; td2->td_upcall = ku; td2->td_flags = TDF_UPCALLING; + if (td->td_proc->p_sflag & PS_NEEDSIGCHK) + td2->td_flags |= TDF_ASTPENDING; td2->td_kse = NULL; td2->td_state = TDS_CAN_RUN; td2->td_inhibitors = 0; |