diff options
author | Andreas Kling <kling@serenityos.org> | 2021-03-29 08:59:22 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-03-29 08:59:22 +0200 |
commit | 497c4c3858fbe843a0937d4324e0788e89ca8555 (patch) | |
tree | 4731f1e0f1abc509839ef185fc6a4230e3b4b988 /Kernel | |
parent | 0f270afda89ff94b10686f2fdc72ce751f243de5 (diff) | |
download | serenity-497c4c3858fbe843a0937d4324e0788e89ca8555.zip |
Kernel: Let's also not reverse the blocking flag for FIONBIO..
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Syscalls/ioctl.cpp | 2 |
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); |