Fixed zombi problem

This commit is contained in:
madmaurice 2015-12-03 17:59:58 +01:00
parent cd152f0f6d
commit 2e8a8a8db0

View file

@ -157,9 +157,6 @@ updates() {
cd $(dirname $0)
#Trap magic
trap "trap - SIGTERM && kill -9 -- -$$" SIGINT SIGTERM EXIT
#Fifo
[ -e "$FIFO" ] && rm -f $FIFO
mkfifo $FIFO
@ -174,6 +171,12 @@ diskspace &
wifi &
updates &
( while true; do cat $FIFO; done ) | python ./barformatter.py "$FORMAT" | lemonbar -g 1366x18 -f "Stlarch:size=6:style=regular" -f "Inconsolata:size=8" -B "#88000000"
#Trap magic
trap "kill -9 -$$" TERM INT
echo Trap set for $$
exit 0
(
( while [ -e "$FIFO" ]; do cat $FIFO; done ) | python ./barformatter.py "$FORMAT" | lemonbar -g 1366x18 -f "Stlarch:size=6:style=regular" -f "Inconsolata:size=8" -B "#88000000"
) &
wait $!