Browse Source

pgm: Flush stderr during shutdown

If an error occurs in command line option parsing the error message
may be stuck in a Java level buffer.  Flush the stream to ensure
everything is made available to the calling process or terminal.

Change-Id: I55b16e43aa96fc81c1197121032f5cdd901d412c
tags/v3.4.0.201405051725-m7
Shawn Pearce 10 years ago
parent
commit
05226ac950
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java

+ 2
- 0
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Main.java View File

@@ -224,6 +224,8 @@ public class Main {
} finally {
if (cmd.outw != null)
cmd.outw.flush();
if (cmd.errw != null)
cmd.errw.flush();
}
}


Loading…
Cancel
Save