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 252b92f4c0c86af7b187c3782d111137d5f72576..28aaf78c493f31314387cd6b7a535c530271e4c0 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 = {}