From 515e07de5d61c04619856f05ca48b1a69aa22ad1 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Sun, 7 Jun 2020 09:10:02 +0200 Subject: [PATCH] fix suspend/kill background jobs --- modules/background.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/background.sh b/modules/background.sh index d66133f..2bcf092 100644 --- a/modules/background.sh +++ b/modules/background.sh @@ -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" & }