Skip to content
Snippets Groups Projects
Commit 74e951b8 authored by Mick Jordan's avatar Mick Jordan
Browse files

destroy timed-out sub-processes

parent 164473d4
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,9 @@ public class ProcessSystemFunctionFactory extends SystemFunctionFactory {
timeout = 5;
}
boolean exited = p.waitFor(timeout, TimeUnit.MINUTES);
if (!exited) {
p.destroy();
}
rc = exited ? 0 : 127;
} else {
rc = p.waitFor();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment