From 656c5c4b20fc2672b4c33cf0d6ce8d0bf5f8426f Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 10 Oct 2008 18:06:58 +0000 Subject: - fix return value --- libc/sysdeps/linux/common/signalfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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__ -- cgit v1.2.3