about summary refs log tree commit diff
path: root/nptl/pt-sigpause.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pt-sigpause.c')
-rw-r--r--nptl/pt-sigpause.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/nptl/pt-sigpause.c b/nptl/pt-sigpause.c
index ad78662839..e35026bdf4 100644
--- a/nptl/pt-sigpause.c
+++ b/nptl/pt-sigpause.c
@@ -28,12 +28,22 @@
 int
 sigpause (int mask)
 {
-  int oldtype;
-  int result;
+  int oldtype = CANCEL_ASYNC ();
 
-  CANCEL_ASYNC (oldtype);
+  int result = __sigpause (mask, 0);
 
-  result = sigpause (mask);
+  CANCEL_RESET (oldtype);
+
+  return result;
+}
+
+
+int
+__xpg_sigpause (int sig)
+{
+  int oldtype = CANCEL_ASYNC ();
+
+  int result = __sigpause (sig, 1);
 
   CANCEL_RESET (oldtype);