mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 07:10:06 +00:00
(sigwait): Check for old sighandler being SIG_ERR, not NULL.
This commit is contained in:
parent
3a2832a07f
commit
a4082e64a2
@ -198,7 +198,7 @@ int sigwait(const sigset_t * set, int * sig)
|
||||
s != __pthread_sig_cancel &&
|
||||
s != __pthread_sig_debug) {
|
||||
sigdelset(&mask, s);
|
||||
if (sighandler[s].old == NULL ||
|
||||
if (sighandler[s].old == (arch_sighandler_t) SIG_ERR ||
|
||||
sighandler[s].old == (arch_sighandler_t) SIG_DFL ||
|
||||
sighandler[s].old == (arch_sighandler_t) SIG_IGN) {
|
||||
sa.sa_handler = pthread_null_sighandler;
|
||||
|
Loading…
Reference in New Issue
Block a user