Force new process group using setgid -f when starting anything that may possibly kill an entire progress group (kill -9 0) #117

This fixes https://todo.sr.ht/~mil/sxmo-tickets/117 and the crashes when
toggling the modem monitor.

Signed-off-by: Anjandev Momi <anjan@momi.ca>
This commit is contained in:
Maarten van Gompel 2020-12-02 00:34:47 +01:00 committed by Anjandev Momi
parent 9aa5c7bf16
commit c915de82d8
2 changed files with 3 additions and 3 deletions

View file

@ -76,10 +76,10 @@ if [ "$HANDLE" -ne 0 ]; then
pkill -9 "$KEYBOARD"
;;
"showmenu")
pidof dmenu || sxmo_appmenu.sh &
pidof dmenu || setsid -f sxmo_appmenu.sh &
;;
"showsysmenu")
pidof dmenu || sxmo_appmenu.sh sys &
pidof dmenu || setsid -f sxmo_appmenu.sh sys &
;;
"hidemenu")
pkill -9 dmenu