Ver Fonte

- fix return value

Bernhard Reutner-Fischer há 16 anos atrás
pai
commit
656c5c4b20
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      libc/sysdeps/linux/common/signalfd.c

+ 1 - 1
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__