aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-05-15 08:41:00 +0000
committerMartin Willi <martin@strongswan.org>2008-05-15 08:41:00 +0000
commitbb94e1ed601ae3c256c882c8f1fb34525b401577 (patch)
treeb0b3646ca1c3a8f946da8f180c314e950a7eba6f
parentbde895181d019701b13fc2021a61486d7d524a4d (diff)
downloadstrongswan-bb94e1ed601ae3c256c882c8f1fb34525b401577.tar.bz2
strongswan-bb94e1ed601ae3c256c882c8f1fb34525b401577.tar.xz
properly removing bootup poll interface eth0
-rw-r--r--src/dumm/mconsole.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dumm/mconsole.c b/src/dumm/mconsole.c
index 01fdbb422..d9864f676 100644
--- a/src/dumm/mconsole.c
+++ b/src/dumm/mconsole.c
@@ -212,7 +212,10 @@ static bool wait_bootup(private_mconsole_t *this)
}
if (res == 0)
{
- request(this, "remove eth9", buf, &len);
+ while (request(this, "remove eth9", buf, &len) != 0)
+ {
+ usleep(50000);
+ }
return TRUE;
}
if (this->idle)