fix suspend/kill background jobs

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2020-06-07 09:10:02 +02:00
parent 4407ccf8ad
commit 515e07de5d
1 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@
# This file is public domain in the USA and all free countries.
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
#
#### $$VERSION$$ v0.96-dev3-9-g313ff03
#### $$VERSION$$ v0.96-dev3-10-g4407ccf
# source from commands.sh if you want ro use interactive or background jobs
@ -46,9 +46,9 @@ start_back() {
restart_back "$@"
}
restart_back() {
local fifo; fifo="${DATADIR:-.}/$(procname "$1" "back-")"
local fifo; fifo="${DATADIR:-.}/$(procname "$1" "back-$3-")"
kill_proc "$1" "back-$3-"
nohup bash -c "{ $2 \"$4\" \"$5\" | \"${SCRIPT}\" outproc \"${1}\" \"${fifo}\"; }" &>>"${fifo}.log" &
nohup bash -c "{ $2 \"$4\" \"$5\" \"${fifo}\" | \"${SCRIPT}\" outproc \"${1}\" \"${fifo}\"; }" &>>"${fifo}.log" &
}