summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls
diff options
context:
space:
mode:
authorBrian Gianforcaro <b.gianfo@gmail.com>2020-08-05 02:13:30 -0700
committerAndreas Kling <kling@serenityos.org>2020-08-05 14:36:48 +0200
commit946c96dd5696116048097340db86a26ce9aa7a58 (patch)
tree6ffd331ca633fd760d66ae90c63eb159f2895ca2 /Kernel/Syscalls
parentd67069d92246a12ef3e27dc4890698ea1d83eccc (diff)
downloadserenity-946c96dd5696116048097340db86a26ce9aa7a58.zip
Kernel: Suppress remaining unobserved KResult return codes
These are all cases where there is no clear and easy fix, I've left FIXME bread crumbs so that these can hopefully be fixed over time.
Diffstat (limited to 'Kernel/Syscalls')
-rw-r--r--Kernel/Syscalls/execve.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Kernel/Syscalls/execve.cpp b/Kernel/Syscalls/execve.cpp
index f5d6c552cf..a74dd301e4 100644
--- a/Kernel/Syscalls/execve.cpp
+++ b/Kernel/Syscalls/execve.cpp
@@ -246,7 +246,8 @@ int Process::do_exec(NonnullRefPtr<FileDescription> main_program_description, Ve
for (size_t i = 0; i < m_fds.size(); ++i) {
auto& description_and_flags = m_fds[i];
if (description_and_flags.description() && description_and_flags.flags() & FD_CLOEXEC) {
- description_and_flags.description()->close();
+ // FIXME: Should this error path be observed somehow?
+ (void)description_and_flags.description()->close();
description_and_flags = {};
}
}