about summary refs log tree commit diff
path: root/sysdeps/posix/sigpause.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-05-16 18:50:00 +0000
committerUlrich Drepper <drepper@redhat.com>2003-05-16 18:50:00 +0000
commit7ffac51fb869894e8f4aa4266d27233e298f215e (patch)
tree84eb33c6fe97868d5f4f43a75d45474eecd128aa /sysdeps/posix/sigpause.c
parent6e66dc78c4149bde8d8401fba53eab0429829e95 (diff)
downloadglibc-7ffac51fb869894e8f4aa4266d27233e298f215e.tar.gz
glibc-7ffac51fb869894e8f4aa4266d27233e298f215e.tar.xz
glibc-7ffac51fb869894e8f4aa4266d27233e298f215e.zip
Update.
2003-05-16  Ulrich Drepper  <drepper@redhat.com>

	* sysdeps/posix/sigpause.c (do_sigpause): Use sigdelset after all.
Diffstat (limited to 'sysdeps/posix/sigpause.c')
-rw-r--r--sysdeps/posix/sigpause.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/posix/sigpause.c b/sysdeps/posix/sigpause.c
index bf2ca6588d..78b247ebd9 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)