projects
/
feed
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b216fd3
)
net/mwan3: mwan3track interrupt sleep on signal (trap) event
author
Florian Eckert
<fe@dev.tdt.de>
Thu, 6 Apr 2017 14:36:46 +0000
(16:36 +0200)
committer
Florian Eckert
<fe@dev.tdt.de>
Tue, 11 Apr 2017 07:46:20 +0000
(09:46 +0200)
Sleep will be aborted if a signal is send to this process.
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/mwan3/files/usr/sbin/mwan3track
patch
|
blob
|
history
diff --git
a/net/mwan3/files/usr/sbin/mwan3track
b/net/mwan3/files/usr/sbin/mwan3track
index a5c3a4272ee0292b682698abf6831c30223a9457..0d7b5ab5d9cf43e70871b65568b054d33e5b4b11 100755
(executable)
--- a/
net/mwan3/files/usr/sbin/mwan3track
+++ b/
net/mwan3/files/usr/sbin/mwan3track
@@
-115,7
+115,8
@@
main() {
echo "${turn}" > /var/run/mwan3track/$1/TURN
host_up_count=0
- sleep $sleep_time
+ sleep "${sleep_time}" &
+ wait
if [ "${IFDOWN_EVENT}" -eq 1 ]; then
score=0