aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-02-24 22:35:53 +0000
committerRoland McGrath <roland@gnu.org>2003-02-24 22:35:53 +0000
commitd102d699995a6a601db45312622051173d7be754 (patch)
tree99ffe8bb80dea92306332a755d96519ca391ea7c
parent20c54fe445a706858421b9466e56a2bf7e0033f9 (diff)
downloadglibc-d102d699995a6a601db45312622051173d7be754.tar
glibc-d102d699995a6a601db45312622051173d7be754.tar.gz
glibc-d102d699995a6a601db45312622051173d7be754.tar.bz2
glibc-d102d699995a6a601db45312622051173d7be754.zip
2003-02-24 Roland McGrath <roland@redhat.com>
* sysdeps/posix/pause.c: Add LIBC_CANCEL_HANDLED.
-rw-r--r--sysdeps/posix/pause.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/posix/pause.c b/sysdeps/posix/pause.c
index db2c54f29d..8639e684f4 100644
--- a/sysdeps/posix/pause.c
+++ b/sysdeps/posix/pause.c
@@ -19,6 +19,7 @@
#include <signal.h>
#include <unistd.h>
+#include <sysdep-cancel.h>
/* Suspend the process until a signal arrives.
This always returns -1 and sets errno to EINTR. */
@@ -36,3 +37,5 @@ __libc_pause (void)
return __sigsuspend (&set);
}
weak_alias (__libc_pause, pause)
+
+LIBC_CANCEL_HANDLED (); /* sigsuspend handles our cancellation. */