summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-29 08:59:22 +0200
committerAndreas Kling <kling@serenityos.org>2021-03-29 08:59:22 +0200
commit497c4c3858fbe843a0937d4324e0788e89ca8555 (patch)
tree4731f1e0f1abc509839ef185fc6a4230e3b4b988 /Kernel
parent0f270afda89ff94b10686f2fdc72ce751f243de5 (diff)
downloadserenity-497c4c3858fbe843a0937d4324e0788e89ca8555.zip
Kernel: Let's also not reverse the blocking flag for FIONBIO..
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Syscalls/ioctl.cpp2
1 files changed, 1 insertions, 1 deletions
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<int> 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);