about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--linuxthreads/signals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linuxthreads/signals.c b/linuxthreads/signals.c
index 5a1025ee7a..da3ce69a4d 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;