[Lldb-commits] [lldb] r182539 - Fix shutdown to correctly close stdout and stop showing garbage characters on exit.
Michael Sartain
mikesart at valvesoftware.com
Wed May 22 16:31:28 PDT 2013
Author: mikesart
Date: Wed May 22 18:31:28 2013
New Revision: 182539
URL: http://llvm.org/viewvc/llvm-project?rev=182539&view=rev
Log:
Fix shutdown to correctly close stdout and stop showing garbage characters on exit.
Patch by Matthew Sorrels
Modified:
lldb/trunk/tools/driver/Driver.cpp
Modified: lldb/trunk/tools/driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/driver/Driver.cpp?rev=182539&r1=182538&r2=182539&view=diff
==============================================================================
--- lldb/trunk/tools/driver/Driver.cpp (original)
+++ lldb/trunk/tools/driver/Driver.cpp Wed May 22 18:31:28 2013
@@ -1587,9 +1587,15 @@ Driver::MainLoop ()
}
}
- editline_output_pty.CloseMasterFileDescriptor();
+ master_out_comm.SetReadThreadBytesReceivedCallback(NULL, NULL);
master_out_comm.Disconnect();
+ master_out_comm.ReadThreadStop();
+
+ out_comm_2.SetReadThreadBytesReceivedCallback(NULL, NULL);
out_comm_2.Disconnect();
+ out_comm_2.ReadThreadStop();
+
+ editline_output_pty.CloseMasterFileDescriptor();
reset_stdin_termios();
fclose (stdin);
More information about the lldb-commits
mailing list