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:
parent
37087753b2
commit
16088e4a88
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112750
@ -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)) {
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user