mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-22 14:48:26 +00:00
Fix monitor process not waiting for renice / taskset
This commit is contained in:
parent
5d839a76a0
commit
798e5dee56
@ -1027,7 +1027,7 @@ doRun() {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ " $* " = *" --wait "* ]; then
|
if [[ " $* " = *" --wait "* ]]; then
|
||||||
# This requires bash 4+
|
# This requires bash 4+
|
||||||
# $$ returns the main process, $BASHPID returns the current process
|
# $$ returns the main process, $BASHPID returns the current process
|
||||||
kill -STOP $BASHPID # wait for caller to renice us
|
kill -STOP $BASHPID # wait for caller to renice us
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user