Previous sleeps where not killed

This commit is contained in:
i.ortega 2020-05-08 02:15:20 +02:00
parent 0aafd2828a
commit 4c83af3547
1 changed files with 3 additions and 1 deletions

View File

@ -184,6 +184,7 @@ update() { \
# Check to see if new weather report is needed.
# testweather &
# wait
[ -n "$sleep_pid" ] && kill "$sleep_pid"
}
# Handle SIGTRAP signals sent by refbar to update the status bar immediately.
@ -197,6 +198,7 @@ while :; do
# because traps can interrupt wait immediately, but they can't do that
# with sleep.
touch "$lockfile" 2>/dev/null
sleep 69d &
sleep infinity &
sleep_pid="$!"
wait
done