Fixed zombi problem
This commit is contained in:
parent
cd152f0f6d
commit
2e8a8a8db0
1 changed files with 12 additions and 9 deletions
|
@ -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 $!
|
||||
|
|
Loading…
Reference in a new issue