forked from OSchip/llvm-project
Fix shutdown to correctly close stdout and stop showing garbage characters on exit.
Patch by Matthew Sorrels llvm-svn: 182539
This commit is contained in:
parent
43d8279ffd
commit
816cf1d88a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue