mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Further fix PS_NEEDSIGCHK
This commit is contained in:
parent
02bbffaf3c
commit
88aba94cdc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111042
@ -484,6 +484,8 @@ kse_release(struct thread *td, struct kse_release_args *uap)
|
||||
mtx_lock_spin(&sched_lock);
|
||||
/* Change OURSELF to become an upcall. */
|
||||
td->td_flags = TDF_UPCALLING;
|
||||
if (p->p_sflag & PS_NEEDSIGCHK)
|
||||
td->td_flags |= TDF_ASTPENDING;
|
||||
if ((td->td_upcall->ku_flags & KUF_DOUPCALL) == 0 &&
|
||||
(kg->kg_completed == NULL)) {
|
||||
kg->kg_upsleeps++;
|
||||
|
@ -484,6 +484,8 @@ kse_release(struct thread *td, struct kse_release_args *uap)
|
||||
mtx_lock_spin(&sched_lock);
|
||||
/* Change OURSELF to become an upcall. */
|
||||
td->td_flags = TDF_UPCALLING;
|
||||
if (p->p_sflag & PS_NEEDSIGCHK)
|
||||
td->td_flags |= TDF_ASTPENDING;
|
||||
if ((td->td_upcall->ku_flags & KUF_DOUPCALL) == 0 &&
|
||||
(kg->kg_completed == NULL)) {
|
||||
kg->kg_upsleeps++;
|
||||
|
Loading…
Reference in New Issue
Block a user