mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
Kernel: Tidy up FileDescriptor members a bit.
This commit is contained in:
parent
123283d840
commit
237628a7a6
5 changed files with 10 additions and 13 deletions
|
@ -1140,11 +1140,11 @@ int Process::sys$pipe(int pipefd[2])
|
|||
auto fifo = FIFO::create(m_uid);
|
||||
|
||||
int reader_fd = alloc_fd();
|
||||
m_fds[reader_fd].set(fifo->open_direction(FIFO::Reader));
|
||||
m_fds[reader_fd].set(fifo->open_direction(FIFO::Direction::Reader));
|
||||
pipefd[0] = reader_fd;
|
||||
|
||||
int writer_fd = alloc_fd();
|
||||
m_fds[writer_fd].set(fifo->open_direction(FIFO::Writer));
|
||||
m_fds[writer_fd].set(fifo->open_direction(FIFO::Direction::Writer));
|
||||
pipefd[1] = writer_fd;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue