================
@@ -64,10 +64,16 @@ struct Kernel32 {
static Kernel32 kernel32;
+PseudoConsole::~PseudoConsole() { Close(); }
+
llvm::Error PseudoConsole::OpenPseudoConsole() {
if (!kernel32.IsConPTYAvailable())
return llvm::make_error<llvm::StringError>("ConPTY is not available",
llvm::errc::io_error);
+
+ // close any previously opened handles
+ Close();
----------------
charles-zablit wrote:
won't this be an issue if we run lldb with multiple targets?
https://github.com/llvm/llvm-project/pull/176775
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits