mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:47:35 +00:00
Kernel: Let's allow unsetting non-blocking mode with FIONBIO as well
Thanks to almightyhydra for pointing this out! :^)
This commit is contained in:
parent
d454926e0f
commit
0f270afda8
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ KResultOr<int> Process::sys$ioctl(int fd, unsigned request, FlatPtr arg)
|
||||||
auto description = file_description(fd);
|
auto description = file_description(fd);
|
||||||
if (!description)
|
if (!description)
|
||||||
return EBADF;
|
return EBADF;
|
||||||
if (request == FIONBIO && arg != 0) {
|
if (request == FIONBIO) {
|
||||||
description->set_blocking(false);
|
description->set_blocking(arg != 0);
|
||||||
return KSuccess;
|
return KSuccess;
|
||||||
}
|
}
|
||||||
return description->file().ioctl(*description, request, arg);
|
return description->file().ioctl(*description, request, arg);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue