]> source.dussan.org Git - jgit.git/commit
Cleaned up various readPipe() threading issues 34/59434/2
authorAndrey Loskutov <loskutov@gmx.de>
Sun, 1 Nov 2015 12:40:02 +0000 (13:40 +0100)
committerAndrey Loskutov <loskutov@gmx.de>
Sun, 1 Nov 2015 13:03:52 +0000 (14:03 +0100)
commit8473bc4f8d2d69ca8aa3b4889660ed17d08f2270
treec1af51676be72f0a102c74eb836472467daaf0d5
parent3601c8cdf116f7bac2f624b46a22cba2e4f14d92
Cleaned up various readPipe() threading issues

Fixed random errors in discoverGitSystemConfig() on Linux where the
process error stream was closed by readPipe() before or while
GobblerThread was reading from it.

Marked readPipe() as @Nullable and fixed potential NPE in
discoverGitSystemConfig() on readPipe() return value.

Fixed process error output randomly mixed with other threads log
messages.

Change-Id: Id882af2762cfb75f010f693b2e1c46eb6968ee82
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java