summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-10-10 18:06:58 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-10-10 18:06:58 +0000
commit656c5c4b20fc2672b4c33cf0d6ce8d0bf5f8426f (patch)
treea2e6bd864fe719ef566cc22de5984494c92a8772
parent8e36b7ce609efb05ecfba3e055a8eef7d8873a15 (diff)
- fix return value
-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__