1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug 525664: Add missing close in new Debugger Console

On Windows the PTY's waitFor will be blocked (and therefore not
see debugger termination) until the handle to stream is closed.

Change-Id: Ifa079a064733a12a03b07c3e7361e1d19d2b8be8
This commit is contained in:
Jonah Graham 2017-08-29 12:22:00 +01:00
parent 07e8917eb5
commit 7af3055b85

View file

@ -257,6 +257,13 @@ public class GdbTerminalConnector implements IGdbTerminalControlConnector {
} catch (IOException e) {
}
// Close the stream (ignore exceptions on close)
try {
fInputStream.close();
} catch (IOException e) {
/* ignored on purpose */
}
return Status.OK_STATUS;
}
}