mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 22:52:11 +02:00
Bug 465674 - close terminal blocks eclipse UI on Mac OS X
Destroy process before closing streams, except on Windows.
This commit is contained in:
parent
ad325a79bf
commit
e7ae930f83
1 changed files with 11 additions and 2 deletions
|
@ -243,11 +243,20 @@ public class ProcessConnector extends AbstractStreamsConnector {
|
|||
// Stop monitoring the process
|
||||
monitor.dispose();
|
||||
|
||||
boolean isWindows = Platform.OS_WIN32.equals(Platform.getOS());
|
||||
|
||||
if (!isWindows) {
|
||||
// Destroy the process first, except on windows (Bug 465674)
|
||||
if (process != null) { process.destroy(); process = null; }
|
||||
}
|
||||
|
||||
// Dispose the streams
|
||||
super.doDisconnect();
|
||||
|
||||
// Dispose the process
|
||||
if (process != null) { process.destroy(); process = null; }
|
||||
if (isWindows) {
|
||||
// On Windows destroy the process after closing streams
|
||||
if (process != null) { process.destroy(); process = null; }
|
||||
}
|
||||
|
||||
// Set the terminal control state to CLOSED.
|
||||
fControl.setState(TerminalState.CLOSED);
|
||||
|
|
Loading…
Add table
Reference in a new issue