private void processInputStream() {
    try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream))) {
      bufferedReader.lines().forEach(consumeInputLine);
    } catch (UncheckedIOException | IOException ignored) {
      // If this gobbler is reading the System.out stream from a process that gets killed,
      // we will occasionally see an exception here than can be ignored.
    }
  }
Blocks until the StreamGobbler finishes processing the input stream

@throws InterruptedException if the StreamGobbler thread was interrupted
@throws ExecutionException if the StreamGobbler thread threw an exception
@throws TimeoutException if the StreamGobbler does not finish processing input before the
        timeout
geode-junit/src/main/java/org/apache/geode/test/junit/rules/gfsh/internal/StreamGobbler.java