properly removing bootup poll interface eth0
authorMartin Willi <martin@strongswan.org>
Thu, 15 May 2008 08:41:00 +0000 (08:41 -0000)
committerMartin Willi <martin@strongswan.org>
Thu, 15 May 2008 08:41:00 +0000 (08:41 -0000)
src/dumm/mconsole.c

index 01fdbb4..d9864f6 100644 (file)
@@ -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)