]> source.dussan.org Git - jgit.git/commit
Fix IllegalThreadStateException if stderr closed without exiting 22/113122/1
authorDmitry Pavlenko <pavlenko@tmatesoft.com>
Thu, 7 Dec 2017 18:36:35 +0000 (19:36 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sun, 10 Dec 2017 17:00:55 +0000 (18:00 +0100)
commit7ccf38adc60c12606164655386630b4e296baf13
tree25ee14dcc6c5755a0b5d0ab24562f75251d63feb
parentdeb68cfb4ae602d4e49b19fffa55bdf2f727ed42
Fix IllegalThreadStateException if stderr closed without exiting

If some process executed by FS#readPipe lived for a while after
closing stderr, FS#GobblerThread#run failed with an
IllegalThreadStateException exception when accessing p.exitValue()
for the process which is still alive.

Add Process#waitFor calls to wait for the process completion.

Bug: 528335
Change-Id: I87e0b6f9ad0b995dbce46ddfb877e33eaf3ae5a6
Signed-off-by: Dmitry Pavlenko <pavlenko@tmatesoft.com>
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java