1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:37:35 +00:00

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

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