From: Ben Pfaff Date: Wed, 17 Dec 2008 00:28:50 +0000 (-0800) Subject: Make secchan exit if the connection drops and can never be reconnected. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3783bcc2953cd59570030fbd3bff3743f28e311;p=openvswitch Make secchan exit if the connection drops and can never be reconnected. In particular this happens if the controller is specified using a fd vconn, since once disconnected a fd vconn can never be reconnected. This behavior is useful for vswitchd, which connects to secchan over a fd vconn. --- diff --git a/secchan/secchan.c b/secchan/secchan.c index e2712cd1..0da3fd77 100644 --- a/secchan/secchan.c +++ b/secchan/secchan.c @@ -213,7 +213,7 @@ main(int argc, char *argv[]) executer_start(&secchan, &s); } - for (;;) { + while (s.discovery || rconn_is_alive(remote_rconn)) { struct relay *r, *n; size_t i;