From 7ffac51fb869894e8f4aa4266d27233e298f215e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 16 May 2003 18:50:00 +0000 Subject: [PATCH] Update. 2003-05-16 Ulrich Drepper * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all. --- ChangeLog | 4 ++++ sysdeps/posix/sigpause.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0cc7963..736f112 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-05-16 Ulrich Drepper + + * sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all. + 2003-05-15 Jakub Jelinek * sysdeps/powerpc/powerpc32/dl-machine.c (_dl_reloc_overflow): diff --git a/sysdeps/posix/sigpause.c b/sysdeps/posix/sigpause.c index bf2ca65..78b247e 100644 --- a/sysdeps/posix/sigpause.c +++ b/sysdeps/posix/sigpause.c @@ -34,9 +34,7 @@ do_sigpause (int sig_or_mask, int is_sig) { /* The modern X/Open implementation is requested. */ if (__sigprocmask (0, NULL, &set) < 0 - /* Perform the tests from sigdelset ourselves. */ - || sig_or_mask <= 0 || sig_or_mask >= NSIG - || __sigdelset (&set, sig_or_mask) < 0) + || sigdelset (&set, sig_or_mask) < 0) return -1; } else if (sigset_set_old_mask (&set, sig_or_mask) < 0) -- 2.7.4