1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 345164: Avoid leaking pipes

This commit is contained in:
Marc Khouzam 2011-05-09 17:42:41 +00:00
parent 323cc9f222
commit 790ba0fc84
2 changed files with 5 additions and 0 deletions

View file

@ -314,6 +314,10 @@ public class LaunchUtils {
} catch (IOException e) {
throw new DebugException(new Status(IStatus.ERROR, GdbPlugin.PLUGIN_ID, DebugException.REQUEST_FAILED,
"Error reading GDB STDOUT after sending: " + cmd, e.getCause()));//$NON-NLS-1$
} finally {
// Cleanup to avoid leaking pipes
// Bug 345164
process.destroy();
}
return getGDBVersionFromText(cmdOutput.toString());

View file

@ -712,6 +712,7 @@ public class GDBBackend extends AbstractDsfService implements IGDBBackend {
getExecutor().submit(
new DsfRunnable() {
public void run() {
destroy();
fBackendState = State.TERMINATED;
getSession().dispatchEvent(
new BackendStateChangedEvent(getSession().getId(), getId(), State.TERMINATED),