You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by MikeThomsen <gi...@git.apache.org> on 2018/05/11 21:56:21 UTC
[GitHub] nifi pull request #2594: NIFI-5024 Resolves deadlock in ExecuteStreamCommand...
Github user MikeThomsen commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2594#discussion_r187742376
--- Diff: nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ExecuteStreamCommand.java ---
@@ -351,6 +350,16 @@ public void onTrigger(ProcessContext context, final ProcessSession session) thro
builder.directory(dir);
builder.redirectInput(Redirect.PIPE);
builder.redirectOutput(Redirect.PIPE);
+ final File errorOut;
+ try {
+ errorOut = File.createTempFile("out", null);
+ errorOut.deleteOnExit();
--- End diff --
I would like to see this deleted after every iteration of the processor because it could a very long time brefore deleteOnExit gets executed.
---