From 497c4c3858fbe843a0937d4324e0788e89ca8555 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 29 Mar 2021 08:59:22 +0200 Subject: Kernel: Let's also not reverse the blocking flag for FIONBIO.. --- Kernel/Syscalls/ioctl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Kernel') diff --git a/Kernel/Syscalls/ioctl.cpp b/Kernel/Syscalls/ioctl.cpp index 9b0ba6e8dc..f032fe8f6c 100644 --- a/Kernel/Syscalls/ioctl.cpp +++ b/Kernel/Syscalls/ioctl.cpp @@ -36,7 +36,7 @@ KResultOr Process::sys$ioctl(int fd, unsigned request, FlatPtr arg) if (!description) return EBADF; if (request == FIONBIO) { - description->set_blocking(arg != 0); + description->set_blocking(arg == 0); return KSuccess; } return description->file().ioctl(*description, request, arg); -- cgit debian/1.2.3+git2.25.1-1-2-gaceb0