diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-28 18:08:57 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-28 18:08:57 +0000 |
commit | 4fcebd533b895114d79338e54fd8b0e61db54f3f (patch) | |
tree | c501cb9d70d742b5b8928e9a6c86fba76a914590 /sys/kern | |
parent | c91649aa818a8c6873545d1a36c2af8d15756934 (diff) | |
download | FreeBSD-src-4fcebd533b895114d79338e54fd8b0e61db54f3f.zip FreeBSD-src-4fcebd533b895114d79338e54fd8b0e61db54f3f.tar.gz |
Check for the PS_NEEDSIGCHK flag in the right flags field.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_kse.c | 2 | ||||
-rw-r--r-- | 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 9456646..149b268 100644 --- a/sys/kern/kern_kse.c +++ b/sys/kern/kern_kse.c @@ -1623,7 +1623,7 @@ thread_userret(struct thread *td, struct trapframe *frame) td->td_flags &= ~TDF_CAN_UNBIND; mtx_unlock_spin(&sched_lock); ku = td->td_upcall; - if ((p->p_flag & PS_NEEDSIGCHK) == 0 && + if ((p->p_sflag & PS_NEEDSIGCHK) == 0 && (kg->kg_completed == NULL) && (ku->ku_flags & KUF_DOUPCALL) == 0 && (kg->kg_upquantum && ticks >= kg->kg_nextupcall)) { diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index 9456646..149b268 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -1623,7 +1623,7 @@ thread_userret(struct thread *td, struct trapframe *frame) td->td_flags &= ~TDF_CAN_UNBIND; mtx_unlock_spin(&sched_lock); ku = td->td_upcall; - if ((p->p_flag & PS_NEEDSIGCHK) == 0 && + if ((p->p_sflag & PS_NEEDSIGCHK) == 0 && (kg->kg_completed == NULL) && (ku->ku_flags & KUF_DOUPCALL) == 0 && (kg->kg_upquantum && ticks >= kg->kg_nextupcall)) { |