1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-14 10:09:48 +00:00

Check for the PS_NEEDSIGCHK flag in the right flags field.

This commit is contained in:
John Baldwin 2003-03-28 18:08:57 +00:00
parent 37087753b2
commit 16088e4a88
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112750
2 changed files with 2 additions and 2 deletions

View File

@ -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)) {

View File

@ -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)) {