about summary refs log tree commit diff
path: root/nptl/sysdeps/i386/pthread_sigmask.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/sysdeps/i386/pthread_sigmask.c')
-rw-r--r--nptl/sysdeps/i386/pthread_sigmask.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/nptl/sysdeps/i386/pthread_sigmask.c b/nptl/sysdeps/i386/pthread_sigmask.c
index 2ae9198c02..aa071841db 100644
--- a/nptl/sysdeps/i386/pthread_sigmask.c
+++ b/nptl/sysdeps/i386/pthread_sigmask.c
@@ -30,5 +30,9 @@ pthread_sigmask (how, newmask, oldmask)
      const sigset_t *newmask;
      sigset_t *oldmask;
 {
-  return INLINE_SYSCALL (sigprocmask, 3, how, newmask, oldmask);
+  int result = INTERNAL_SYSCALL (sigprocmask, 3, how, newmask, oldmask);
+
+  return (INTERNAL_SYSCALL_ERROR_P (result)
+	  ? INTERNAL_SYSCALL_ERRNO (result)
+	  : 0);
 }