1
0
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:
David Xu 2003-02-17 14:54:57 +00:00
parent 02bbffaf3c
commit 88aba94cdc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111042
2 changed files with 4 additions and 0 deletions

View File

@ -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++;

View File

@ -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++;