Skip to content

Commit

Permalink
reroute the messages of the child process to the parent
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Nov 27, 2023
1 parent 48803fc commit a7ea0c8
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ public void runInterprocessing(List<Tensor<?>> inputTensors, List<Tensor<?>> out
for (Tensor tensor : inputTensors) {args.add(getFilename4Tensor(tensor.getName()) + INPUT_FILE_TERMINATION);}
for (Tensor tensor : outputTensors) {args.add(getFilename4Tensor(tensor.getName()) + OUTPUT_FILE_TERMINATION);}
ProcessBuilder builder = new ProcessBuilder(args);
builder.redirectOutput(ProcessBuilder.Redirect.INHERIT);
builder.redirectError(ProcessBuilder.Redirect.INHERIT);
Process process = builder.start();
int result = process.waitFor();
process.destroy();
Expand Down

0 comments on commit a7ea0c8

Please sign in to comment.