Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -274,34 +274,18 @@ public Integer call() throws CommandLineException {

int returnValue = p.waitFor();

// TODO Find out if waitUntilDone needs to be called using a try-finally construct. The method may
// throw an
// InterruptedException so that calls to waitUntilDone may be skipped.
// try
// {
// if ( inputFeeder != null )
// {
// inputFeeder.waitUntilDone();
// }
// }
// finally
// {
// try
// {
// outputPumper.waitUntilDone();
// }
// finally
// {
// errorPumper.waitUntilDone();
// }
// }
if (inputFeeder != null) {
inputFeeder.waitUntilDone();
try {
if (inputFeeder != null) {
inputFeeder.waitUntilDone();
}
} finally {
try {
outputPumper.waitUntilDone();
} finally {
errorPumper.waitUntilDone();
}
}

outputPumper.waitUntilDone();
errorPumper.waitUntilDone();

if (inputFeeder != null && inputFeeder.getException() != null) {
throw new CommandLineException("Failure processing stdin.", inputFeeder.getException());
}
Expand Down
Loading