xenserver: Block until change in poll loop to avoid 100% CPU consumption.
authorBen Pfaff <blp@nicira.com>
Thu, 26 Aug 2010 16:38:52 +0000 (09:38 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 26 Aug 2010 17:29:43 +0000 (10:29 -0700)
Signed-off-by: Ben Pfaff <blp@nicira.com>
xenserver/usr_share_openvswitch_scripts_monitor-external-ids

index 252b92f..28aaf78 100755 (executable)
@@ -188,6 +188,9 @@ def main(argv):
     interfaces = {}
     while True:
         if not idl.run():
+            poller = ovs.poller.Poller()
+            idl.wait(poller)
+            poller.block()
             continue
  
         new_bridges = {}