pid test 7

This commit is contained in:
Désiré Werner Menrath 2023-11-11 19:05:06 +01:00
parent 5b0fc17c92
commit 458c488450

15
wire_g
View File

@ -61,6 +61,11 @@ wg_notify(){
--menu="Wire-G $open!/sbin/wire_g --menu="Wire-G $open!/sbin/wire_g
|$active stop!/sbin/wg_stop" \ |$active stop!/sbin/wg_stop" \
--command="menu" --command="menu"
while [[ -z $active ]]
do
kill $pid
done
} }
export -f wg_notify export -f wg_notify
@ -146,11 +151,11 @@ remove(){
--text-align=center --button=$"OK" --title "Wire-G Trash" \ --text-align=center --button=$"OK" --title "Wire-G Trash" \
--center --buttons-layout=center --borders=8 --center --buttons-layout=center --borders=8
fi fi
if [ "$selection" = "$active" ] # if [ "$selection" = "$active" ]
then # then
pkill wire_g # pkill wire_g
kill "$pid" # kill yad
fi # fi
fi } fi }
export -f remove export -f remove