Fix monitor process not waiting for renice / taskset

This commit is contained in:
Ben Peddell 2019-08-25 04:22:04 +10:00
parent 5d839a76a0
commit 798e5dee56

View File

@ -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