mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
net/mwan3: mwan3track interrupt sleep on signal (trap) event
Sleep will be aborted if a signal is send to this process. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -115,7 +115,8 @@ main() {
|
|||||||
echo "${turn}" > /var/run/mwan3track/$1/TURN
|
echo "${turn}" > /var/run/mwan3track/$1/TURN
|
||||||
|
|
||||||
host_up_count=0
|
host_up_count=0
|
||||||
sleep $sleep_time
|
sleep "${sleep_time}" &
|
||||||
|
wait
|
||||||
|
|
||||||
if [ "${IFDOWN_EVENT}" -eq 1 ]; then
|
if [ "${IFDOWN_EVENT}" -eq 1 ]; then
|
||||||
score=0
|
score=0
|
||||||
|
|||||||
Reference in New Issue
Block a user