From b46fcaf2f7d41fdc9ccf209f8f67045b0fdedd86 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Fri, 15 Dec 2023 20:27:45 -0700 Subject: [PATCH] fix backwards logic in `ioctl` Signed-off-by: Joel Dice --- libc-bottom-half/cloudlibc/src/libc/sys/ioctl/ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc-bottom-half/cloudlibc/src/libc/sys/ioctl/ioctl.c b/libc-bottom-half/cloudlibc/src/libc/sys/ioctl/ioctl.c index 1ffddf0d3..c637f7eaf 100644 --- a/libc-bottom-half/cloudlibc/src/libc/sys/ioctl/ioctl.c +++ b/libc-bottom-half/cloudlibc/src/libc/sys/ioctl/ioctl.c @@ -23,7 +23,7 @@ int ioctl(int fildes, int request, ...) { case FIONBIO: { va_list ap; va_start(ap, request); - socket->blocking = *va_arg(ap, const int*) != 0; + socket->blocking = *va_arg(ap, const int*) == 0; va_end(ap); return 0;