mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-19 16:51:52 +00:00
Kernel: Use KResultOr and TRY() for FIFO
This commit is contained in:
parent
631b8e90cd
commit
ed5d04b0ea
Notes:
sideshowbarker
2024-07-18 04:31:39 +09:00
Author: https://github.com/awesomekling
Commit: ed5d04b0ea
6 changed files with 10 additions and 18 deletions
|
@ -250,7 +250,7 @@ KResultOr<NonnullRefPtr<OpenFileDescription>> VirtualFileSystem::open(StringView
|
|||
return *preopen_fd;
|
||||
|
||||
if (metadata.is_fifo()) {
|
||||
auto fifo = inode.fifo();
|
||||
auto fifo = TRY(inode.fifo());
|
||||
if (options & O_WRONLY) {
|
||||
auto description = TRY(fifo->open_direction_blocking(FIFO::Direction::Writer));
|
||||
description->set_rw_mode(options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue