Skip to main content
summaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMarc Khouzam2011-05-10 13:38:42 -0400
committerMarc Khouzam2011-05-10 13:38:42 -0400
commit04e7974825d1226309e0732a5084e36a72accaf5 (patch)
tree92cd6d7fc37010b4a4c7dac54f2e4d9cd14e74f7 /debug
parentb609ec68ba92d4208acef8dcb46252da52436172 (diff)
downloadorg.eclipse.cdt-04e7974825d1226309e0732a5084e36a72accaf5.tar.gz
org.eclipse.cdt-04e7974825d1226309e0732a5084e36a72accaf5.tar.xz
org.eclipse.cdt-04e7974825d1226309e0732a5084e36a72accaf5.zip
Bug 345164: Revert changes to Spawner and instead explicitly close streams in DSF-GDB and CDI
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIProcessAdapter.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIProcessAdapter.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIProcessAdapter.java
index b0d446a7e2..f504ba5b5e 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIProcessAdapter.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIProcessAdapter.java
@@ -172,6 +172,19 @@ public class MIProcessAdapter implements MIProcess {
}
public void destroy() {
+ // We are responsible for closing the streams we have used or else
+ // we will leak pipes.
+ // Bug 345164
+ try {
+ getErrorStream().close();
+ } catch (IOException e) {}
+ try {
+ getInputStream().close();
+ } catch (IOException e) {}
+ try {
+ getOutputStream().close();
+ } catch (IOException e) {}
+
fGDBProcess.destroy();
}

Back to the top