From: Ben Pfaff Date: Thu, 26 Aug 2010 16:38:52 +0000 (-0700) Subject: xenserver: Block until change in poll loop to avoid 100% CPU consumption. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5beca6881b3ce12bdf6a64e463bdde5d1d0aaaf;p=openvswitch xenserver: Block until change in poll loop to avoid 100% CPU consumption. Signed-off-by: Ben Pfaff --- diff --git a/xenserver/usr_share_openvswitch_scripts_monitor-external-ids b/xenserver/usr_share_openvswitch_scripts_monitor-external-ids index 252b92f4..28aaf78c 100755 --- a/xenserver/usr_share_openvswitch_scripts_monitor-external-ids +++ b/xenserver/usr_share_openvswitch_scripts_monitor-external-ids @@ -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 = {}