Previous sleeps where not killed
This commit is contained in:
parent
0aafd2828a
commit
4c83af3547
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue