Kernel: Let's also not reverse the blocking flag for FIONBIO..

This commit is contained in:
Andreas Kling 2021-03-29 08:59:22 +02:00
parent 0f270afda8
commit 497c4c3858
Notes: sideshowbarker 2024-07-18 20:59:19 +09:00

View file

@ -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);