Install library-installed signal handlers with the SA_RESTART flag

set.
This commit is contained in:
deischen 2002-09-30 08:47:42 +00:00
parent 02a0f0a003
commit bd82e84c30
3 changed files with 3 additions and 3 deletions

View File

@ -376,7 +376,7 @@ _thread_init(void)
/* Initialise the global signal action structure: */
sigfillset(&act.sa_mask);
act.sa_handler = (void (*) ()) _thread_sig_handler;
act.sa_flags = SA_SIGINFO | SA_ONSTACK;
act.sa_flags = SA_SIGINFO | SA_RESTART;
/* Clear pending signals for the process: */
sigemptyset(&_process_sigpending);

View File

@ -84,7 +84,7 @@ _sigaction(int sig, const struct sigaction * act, struct sigaction * oact)
* handler arguments.
*/
sigfillset(&gact.sa_mask);
gact.sa_flags = SA_SIGINFO | SA_ONSTACK;
gact.sa_flags = SA_SIGINFO | SA_RESTART;
/*
* Check if the signal handler is being set to

View File

@ -54,7 +54,7 @@ _sigwait(const sigset_t *set, int *sig)
* Specify the thread kernel signal handler.
*/
act.sa_handler = (void (*) ()) _thread_sig_handler;
act.sa_flags = SA_RESTART | SA_SIGINFO;
act.sa_flags = SA_SIGINFO | SA_RESTART;
/* Ensure the signal handler cannot be interrupted by other signals: */
sigfillset(&act.sa_mask);