Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
netctl
Commits
6ed493ee
Commit
6ed493ee
authored
Jul 02, 2012
by
Henrik Hallberg
Committed by
Jouke Witteveen
Jul 03, 2012
Browse files
Lower latency in timeout_wait
parent
7e2ff917
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/globals
View file @
6ed493ee
...
...
@@ -100,10 +100,11 @@ function checkyesno() {
# $2...: condition command
function
timeout_wait
()
{
local timeout
=
"
$1
"
((
timeout
*
=
10
))
shift
while
!
eval
"
$*
"
;
do
((
timeout--
>
0
))
||
return
1
sleep
1
sleep
0.
1
done
return
0
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment