From 5cd1eeb5568c1d6e98f172c805b52e5a6eea80bd Mon Sep 17 00:00:00 2001 From: deischen Date: Fri, 29 Jun 2001 17:09:07 +0000 Subject: Clear the in thread scheduler flag after jumping to the start of a signal handler from the scheduler. MFC after: 1 week --- lib/libpthread/thread/thr_sig.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/libpthread/thread') diff --git a/lib/libpthread/thread/thr_sig.c b/lib/libpthread/thread/thr_sig.c index fd5180c..9ca197e 100644 --- a/lib/libpthread/thread/thr_sig.c +++ b/lib/libpthread/thread/thr_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) { /* -- cgit v1.1