mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +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);
|
||||
if (!description)
|
||||
return EBADF;
|
||||
if (request == FIONBIO && arg != 0) {
|
||||
description->set_blocking(false);
|
||||
if (request == FIONBIO) {
|
||||
description->set_blocking(arg != 0);
|
||||
return KSuccess;
|
||||
}
|
||||
return description->file().ioctl(*description, request, arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue