Commit 9fcb8c66 authored by Daniel Eggert's avatar Daniel Eggert
Browse files

revised pkill command

parent a59a2b11
......@@ -406,7 +406,7 @@ public class ProcessingScriptExecutor implements SceneProcessorModuleInterface {
} else {
if (scriptProc.canceled) {
// cancel the process
Runtime.getRuntime().exec("pkill -f \"" + com + "\"");
Runtime.getRuntime().exec(new String[] {"pkill", "-f", com});
if (!proc.waitFor(10, TimeUnit.SECONDS)) {
scriptProc.processScriptErrorMessage("process [" + scriptProc.jobid + "] didn't return 10 seconds after cancelation");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment