summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/signalfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/signalfd.c')
-rw-r--r--libc/sysdeps/linux/common/signalfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/signalfd.c b/libc/sysdeps/linux/common/signalfd.c
index e134a6fa9..ab9bba75b 100644
--- a/libc/sysdeps/linux/common/signalfd.c
+++ b/libc/sysdeps/linux/common/signalfd.c
@@ -28,7 +28,7 @@ int signalfd (int fd, const sigset_t *mask, int flags)
#elif defined __NR___syscall_signalfd
if (flags != 0) {
__set_errno(EINVAL);
- return 1;
+ return -1;
}
return __syscall_signalfd(fd, mask, _NSIG / 8);
#elif defined __UCLIBC_HAS_STUBS__