mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +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
Notes:
sideshowbarker
2024-07-18 20:59:21 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/0f270afda89
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…
Reference in a new issue