Don't wake up the thread after the signal handler

has been executed. On return from the signal handler
the call will either be restarted or EINTR will be returned,
but it will not go back to its previous state. So, it is
sufficient to simply change the state to 'running' without
actually trying to wake up the thread.
This commit is contained in:
Mike Makonnen 2004-02-19 13:47:12 +00:00
parent f4c2aae420
commit 8c18819a81
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125999

View File

@ -177,6 +177,6 @@ _thread_sig_wrapper(int sig, siginfo_t *info, void *context)
/* Restore the thread's flags, and make it runnable */
_thread_critical_enter(curthread);
curthread->flags = psd.psd_flags;
PTHREAD_NEW_STATE(curthread, PS_RUNNING);
PTHREAD_SET_STATE(curthread, PS_RUNNING);
_thread_critical_exit(curthread);
}