[Lldb-commits] [lldb] [lldb/Host] Enable inheriting "non-inheritable" FDs (PR #126935)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Thu May 1 03:30:46 PDT 2025
================
@@ -122,8 +123,14 @@ struct ForkLaunchInfo {
ExitWithError(error_fd, "close");
break;
case FileAction::eFileActionDuplicate:
- if (dup2(action.fd, action.arg) == -1)
- ExitWithError(error_fd, "dup2");
+ if (action.fd != action.arg) {
----------------
DavidSpickett wrote:
In what circumstances are action.fd and action.arg the same, or not the same?
https://github.com/llvm/llvm-project/pull/126935
More information about the lldb-commits
mailing list