From b225e71fa478ace7c74bd2e80e01a0c93f85a406 Mon Sep 17 00:00:00 2001 From: Evan Cui Date: Tue, 22 May 2018 18:50:48 +0800 Subject: [PATCH] Fix the end task method --- nodemanager/scripts/EndTask.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemanager/scripts/EndTask.sh b/nodemanager/scripts/EndTask.sh index c7ad371..089e907 100644 --- a/nodemanager/scripts/EndTask.sh +++ b/nodemanager/scripts/EndTask.sh @@ -65,9 +65,9 @@ if $CGInstalled; then done else if [ "$forced" == "1" ]; then - kill -s 9 "$(pstree -l -p "$processId" | grep "([[:digit:]]*)" -o | tr -d '()')" + kill -s 9 $(pstree -l -p "$processId" | grep "([[:digit:]]*)" -o | tr -d '()') else - kill -s SIGINT "$(pstree -l -p "$processId" | grep "([[:digit:]]*)" -o | tr -d '()')" + kill -s SIGINT $(pstree -l -p "$processId" | grep "([[:digit:]]*)" -o | tr -d '()') fi fi