From 778a396796f263be29b9f74f8da44e0ee1ed92b1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 15 Apr 2009 17:21:26 -0700 Subject: [PATCH] vswitch: Fix indefinite wait on reload. If a "reload" command was sent to vswitchd via the unixctl library, then the reconfiguration would not actually happen until another round trip through the vswitchd poll loop. Ordinarily this happens quickly but if nothing is going on it can become an indefinite wait. Fix by forcing another round trip if we need to reconfigure. --- vswitchd/vswitchd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vswitchd/vswitchd.c b/vswitchd/vswitchd.c index f3049b02..ba0acf07 100644 --- a/vswitchd/vswitchd.c +++ b/vswitchd/vswitchd.c @@ -109,6 +109,9 @@ main(int argc, char *argv[]) } unixctl_server_run(unixctl); + if (need_reconfigure) { + poll_immediate_wake(); + } signal_wait(sighup); mgmt_wait(); bridge_wait(); -- 2.30.2