From 51293c7fb029c0c31ad8eba9054e19ce9d934e60 Mon Sep 17 00:00:00 2001 From: yellows8 Date: Tue, 20 Mar 2018 22:49:52 -0400 Subject: [PATCH] In socket ioctl(), properly call fcntl-F_SETFL with the new flags. --- nx/source/runtime/devices/socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/runtime/devices/socket.c b/nx/source/runtime/devices/socket.c index a7c807fb..ccb072e2 100644 --- a/nx/source/runtime/devices/socket.c +++ b/nx/source/runtime/devices/socket.c @@ -553,7 +553,7 @@ int ioctl(int fd, int request, ...) { if(flags == -1) return -1; flags = *(int *)data != 0 ? (flags | O_NONBLOCK) : (flags & ~O_NONBLOCK); - return fcntl(fd, F_SETFL, 0); + return fcntl(fd, F_SETFL, flags); } case BIOCSETF: case BIOCSETWF: