1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Clear the in thread scheduler flag after jumping to the start of

a signal handler from the scheduler.

MFC after:	1 week
This commit is contained in:
Daniel Eischen 2001-06-29 17:09:07 +00:00
parent 1e1e0f9858
commit a9513dc678
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78979
3 changed files with 18 additions and 0 deletions

View File

@ -932,6 +932,12 @@ _thread_sig_wrapper(void)
thread->curframe = NULL;
PTHREAD_ASSERT(psf != NULL, "Invalid signal frame in signal handler");
/*
* We're coming from the kernel scheduler; clear the in
* scheduler flag:
*/
_thread_kern_in_sched = 0;
/* Check the threads previous state: */
if (psf->saved_state.psd_state != PS_RUNNING) {
/*

View File

@ -932,6 +932,12 @@ _thread_sig_wrapper(void)
thread->curframe = NULL;
PTHREAD_ASSERT(psf != NULL, "Invalid signal frame in signal handler");
/*
* We're coming from the kernel scheduler; clear the in
* scheduler flag:
*/
_thread_kern_in_sched = 0;
/* Check the threads previous state: */
if (psf->saved_state.psd_state != PS_RUNNING) {
/*

View File

@ -932,6 +932,12 @@ _thread_sig_wrapper(void)
thread->curframe = NULL;
PTHREAD_ASSERT(psf != NULL, "Invalid signal frame in signal handler");
/*
* We're coming from the kernel scheduler; clear the in
* scheduler flag:
*/
_thread_kern_in_sched = 0;
/* Check the threads previous state: */
if (psf->saved_state.psd_state != PS_RUNNING) {
/*