From: Ulrich Drepper Date: Tue, 19 Feb 2002 07:12:09 +0000 (+0000) Subject: (sigwait): Check for old sighandler being SIG_ERR, not NULL. X-Git-Tag: cvs/glibc-2-3~1056 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a4082e64a222c245ec6c09eae16ad7359db7c856;p=thirdparty%2Fglibc.git (sigwait): Check for old sighandler being SIG_ERR, not NULL. --- diff --git a/linuxthreads/signals.c b/linuxthreads/signals.c index 5a1025ee7a2..da3ce69a4d2 100644 --- a/linuxthreads/signals.c +++ b/linuxthreads/signals.c @@ -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;