mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:48:12 +00:00
Kernel: Allow File::close() to fail
And pass the result through to sys$close() return value. Fixes https://github.com/SerenityOS/serenity/issues/427
This commit is contained in:
parent
d4ddb0013c
commit
1b4e88fb59
12 changed files with 23 additions and 15 deletions
|
@ -564,9 +564,10 @@ int IPv4Socket::ioctl(FileDescription&, unsigned request, FlatPtr arg)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
void IPv4Socket::close()
|
||||
KResult IPv4Socket::close()
|
||||
{
|
||||
shutdown(SHUT_RDWR);
|
||||
(void)shutdown(SHUT_RDWR);
|
||||
return KSuccess;
|
||||
}
|
||||
|
||||
void IPv4Socket::shut_down_for_reading()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue