From 798e5dee565adc039ab3462996fb1dceb7eed2fb Mon Sep 17 00:00:00 2001 From: Ben Peddell Date: Sun, 25 Aug 2019 04:22:04 +1000 Subject: [PATCH] Fix monitor process not waiting for renice / taskset --- tools/arkmanager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/arkmanager b/tools/arkmanager index 17673f8..62dde63 100755 --- a/tools/arkmanager +++ b/tools/arkmanager @@ -1027,7 +1027,7 @@ doRun() { fi fi - if [ " $* " = *" --wait "* ]; then + if [[ " $* " = *" --wait "* ]]; then # This requires bash 4+ # $$ returns the main process, $BASHPID returns the current process kill -STOP $BASHPID # wait for caller to renice us