[Lldb-commits] [PATCH] D105732: [lldb] Update logic to close inherited file descriptors.
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 17 19:51:08 PDT 2021
JDevlieghere added inline comments.
================
Comment at: lldb/source/Host/posix/ProcessLauncherPosixFork.cpp:148
+
+ std::string proc_fd_path = "/proc/self/fd";
+ std::error_code EC;
----------------
MaskRay wrote:
>
Can this be a StringRef?
================
Comment at: lldb/source/Host/posix/ProcessLauncherPosixFork.cpp:149
+ std::string proc_fd_path = "/proc/self/fd";
+ std::error_code EC;
+ bool result;
----------------
================
Comment at: lldb/source/Host/posix/ProcessLauncherPosixFork.cpp:155
+ // Directory iterator doesn't ensure any sequence.
+ for (llvm::sys::fs::directory_iterator iter(proc_fd_path, EC), FileEnd;
+ iter != FileEnd && !EC; iter.increment(EC)) {
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105732/new/
https://reviews.llvm.org/D105732
More information about the lldb-commits
mailing list