summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-02-19 07:12:09 +0000
committerUlrich Drepper <drepper@redhat.com>2002-02-19 07:12:09 +0000
commita4082e64a222c245ec6c09eae16ad7359db7c856 (patch)
tree7b06eaac4cca6b3528298af2acc4b0cd48911dff
parent3a2832a07f0b5b72d457c788e2268232f22a1a67 (diff)
downloadglibc-a4082e64a222c245ec6c09eae16ad7359db7c856.tar.gz
glibc-a4082e64a222c245ec6c09eae16ad7359db7c856.tar.xz
glibc-a4082e64a222c245ec6c09eae16ad7359db7c856.zip
(sigwait): Check for old sighandler being SIG_ERR, not NULL.
-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;