Community
Participate
Working Groups
Bug 576945 substantially improved the situation where not all output was captured from a RuntimeProcess. However there is still a case where OutputStreamMonitor thread is killed/terminated before all the available output is received. This can be simulated by having the read method run slowly, as is demonstrated by org.eclipse.debug.tests.console.RuntimeProcessTests.testOutputAfterDestroy() and the sleep in org.eclipse.debug.tests.console.MockProcess.MockProcess().new InputStream() {...}.read() The RuntimeProcessTests.testOutputAfterDestroy is ignored and should be enabled to test that this works. There probably should be a timeout between the process terminating and giving up on the OutputStreamMonitor terminating. At the moment the OutputStreamMonitor is killed as soon as the process.destory() completes.
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/187593
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/187593 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.debug.git/commit/?id=b703e4db3c9ed4e049a713c182b2d9417eb58e6e