From d5beca6881b3ce12bdf6a64e463bdde5d1d0aaaf Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 26 Aug 2010 09:38:52 -0700 Subject: [PATCH] xenserver: Block until change in poll loop to avoid 100% CPU consumption. Signed-off-by: Ben Pfaff --- xenserver/usr_share_openvswitch_scripts_monitor-external-ids | 3 +++ 1 file changed, 3 insertions(+) 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 = {} -- 2.30.2