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