about summary refs log tree commit diff
path: root/sysdeps/mach/hurd/libc_sigaction.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/hurd/libc_sigaction.c')
-rw-r--r--sysdeps/mach/hurd/libc_sigaction.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sysdeps/mach/hurd/libc_sigaction.c b/sysdeps/mach/hurd/libc_sigaction.c
index 3053c7e7ac..748647e9f8 100644
--- a/sysdeps/mach/hurd/libc_sigaction.c
+++ b/sysdeps/mach/hurd/libc_sigaction.c
@@ -33,10 +33,7 @@ __libc_sigaction (int sig, const struct sigaction *act,
 
   if (act != NULL && act->sa_handler != SIG_DFL
       && ((__sigmask (sig) & _SIG_CANT_MASK) || act->sa_handler == SIG_ERR))
-    {
-      errno = EINVAL;
-      return -1;
-    }
+    return __hurd_fail (EINVAL);
 
   /* Copy so we fault before taking locks.  */
   if (act != NULL)