[Lldb-commits] [lldb] [lldb][Windows] Don't let the inferior inherit the --pipe handle (PR #207024)
Charles Zablit via lldb-commits
lldb-commits at lists.llvm.org
Thu Jul 16 08:15:25 PDT 2026
================
@@ -423,6 +425,11 @@ int main_gdbserver(int argc, char *argv[]) {
return EXIT_FAILURE;
}
unnamed_pipe = (pipe_t)Arg;
+#ifdef _WIN32
+ // Prevent the inferior we later launch from inheriting this pipe's write
+ // handle.
+ ::SetHandleInformation((HANDLE)unnamed_pipe, HANDLE_FLAG_INHERIT, 0);
----------------
charles-zablit wrote:
Fixed, sorry for the delay!
https://github.com/llvm/llvm-project/pull/207024
More information about the lldb-commits
mailing list