Make the "exit" unixctl command reliable in ovsdb-server, ovs-vswitchd.
[sliver-openvswitch.git] / vswitchd / ovs-vswitchd.c
index c307c92..0371e57 100644 (file)
@@ -99,6 +99,9 @@ main(int argc, char *argv[])
         unixctl_server_wait(unixctl);
         dp_wait();
         netdev_wait();
+        if (exiting) {
+            poll_immediate_wake();
+        }
         poll_block();
     }