summaryrefslogtreecommitdiff
path: root/Kernel/Process.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r--Kernel/Process.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index dbc9f56ab8..8b7bd457ac 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -617,9 +617,10 @@ Process::Process(String&& name, uid_t uid, gid_t gid, pid_t ppid, RingLevel ring
} else {
m_fds.resize(m_max_open_file_descriptors);
if (tty) {
- m_fds[0].set(tty->open(O_RDONLY));
- m_fds[1].set(tty->open(O_WRONLY));
- m_fds[2].set(tty->open(O_WRONLY));
+ int error;
+ m_fds[0].set(tty->open(error, O_RDONLY));
+ m_fds[1].set(tty->open(error, O_WRONLY));
+ m_fds[2].set(tty->open(error, O_WRONLY));
}
}