[FIXED JENKINS-8686]

As I mentioned in the comment, I doubt if this makes any behaviour change, but this seems like a sensible defensive measure that wouldn't hurt.
This commit is contained in:
Kohsuke Kawaguchi committed 2013-04-02 09:58:50 -07:00
1 parent 548373fad1
commit dc94b7d063
5 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -399,7 +399,7 @@ public abstract class Proc {
try {
byte[] buf = new byte[8192];
int len;
while ((len = in.read(buf)) > 0) {
while ((len = in.read(buf)) >= 0) {
out.write(buf, 0, len);
out.flush();
}