From 18745b05bb35898c5dd249d1a1cefeac8f194bea Mon Sep 17 00:00:00 2001 From: Miles Alan Date: Mon, 29 Jun 2020 20:02:39 -0500 Subject: [PATCH] Use setsid to update /tmp/sxmo_bar after call to refresh bar after process dead --- scripts/modem/sxmo_modemcall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemcall.sh b/scripts/modem/sxmo_modemcall.sh index 0d955d3..d1812ae 100755 --- a/scripts/modem/sxmo_modemcall.sh +++ b/scripts/modem/sxmo_modemcall.sh @@ -8,7 +8,7 @@ fatalerr() { mmcli -m "$(mmcli -L | grep -oE 'Modem\/([0-9]+)' | cut -d'/' -f2)" --voice-hangup-all alsactl --file /usr/share/sxmo/default_alsa_sound.conf restore notify-send "$1" - (sleep 0.5; echo 1 > /tmp/sxmo_bar) & + setsid -f sh -c 'sleep 2; echo 1 > /tmp/sxmo_bar' kill -9 0 }