diff options
author | Daniel Eischen <deischen@FreeBSD.org> | 2001-06-29 17:09:07 +0000 |
---|---|---|
committer | Daniel Eischen <deischen@FreeBSD.org> | 2001-06-29 17:09:07 +0000 |
commit | a9513dc678a13efd334ffd491e2613bed5fe93d0 (patch) | |
tree | b1f24217eca197c95d265752e36773cf443e5e17 /lib/libc_r/uthread/uthread_sig.c | |
parent | 1e1e0f9858a2efc295189de66aae2b9cde4ede21 (diff) | |
download | src-a9513dc678a13efd334ffd491e2613bed5fe93d0.tar.gz src-a9513dc678a13efd334ffd491e2613bed5fe93d0.zip |
Clear the in thread scheduler flag after jumping to the start of
a signal handler from the scheduler.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=78979
Diffstat (limited to 'lib/libc_r/uthread/uthread_sig.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_sig.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_sig.c b/lib/libc_r/uthread/uthread_sig.c index fd5180c90683..9ca197efdbec 100644 --- a/lib/libc_r/uthread/uthread_sig.c +++ b/lib/libc_r/uthread/uthread_sig.c @@ -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) { /* |