Commit c10b1b3b authored by unknown's avatar unknown

Suggestion of Tim. Avoid unnecessary sleep.

parent 8dad72ee
...@@ -155,7 +155,6 @@ wait_for_pid () { ...@@ -155,7 +155,6 @@ wait_for_pid () {
i=0 i=0
avoid_race_condition="by checking again" avoid_race_condition="by checking again"
while test $i -ne $service_startup_timeout ; do while test $i -ne $service_startup_timeout ; do
sleep 1
case "$verb" in case "$verb" in
'created') 'created')
...@@ -191,6 +190,7 @@ wait_for_pid () { ...@@ -191,6 +190,7 @@ wait_for_pid () {
echo $echo_n ".$echo_c" echo $echo_n ".$echo_c"
i=`expr $i + 1` i=`expr $i + 1`
sleep 1
done done
if test -z "$i" ; then if test -z "$i" ; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment