strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8713e32
)
ipsec: Quit script quicker for ipsec stop
author
Tobias Brunner
<tobias@strongswan.org>
Tue, 6 Oct 2015 15:21:01 +0000
(17:21 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Mon, 9 Nov 2015 14:18:34 +0000
(15:18 +0100)
It rarely takes 1 second or longer to terminate the daemon. This
decreases the runtime of the post test step a lot where `ipsec stop`
is called for multiple hosts in each test case (10-15 minutes over all
test cases).
src/ipsec/_ipsec.in
patch
|
blob
|
history
diff --git
a/src/ipsec/_ipsec.in
b/src/ipsec/_ipsec.in
index
0798830
..
89c7ef7
100644
(file)
--- a/
src/ipsec/_ipsec.in
+++ b/
src/ipsec/_ipsec.in
@@
-256,10
+256,10
@@
stop)
if [ -n "$spid" ]
then
kill $spid 2>/dev/null
- loop=11
+ loop=11
0
while [ $loop -gt 0 ] ; do
kill -0 $spid 2>/dev/null || break
- sleep 1
+ sleep
0.
1
loop=$(($loop - 1))
done
if [ $loop -eq 0 ]