Skip to content

Commit d5beca6

Browse files
committed
xenserver: Block until change in poll loop to avoid 100% CPU consumption.
Signed-off-by: Ben Pfaff <blp@nicira.com>
1 parent 7ef6b68 commit d5beca6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

xenserver/usr_share_openvswitch_scripts_monitor-external-ids

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ def main(argv):
188188
interfaces = {}
189189
while True:
190190
if not idl.run():
191+
poller = ovs.poller.Poller()
192+
idl.wait(poller)
193+
poller.block()
191194
continue
192195

193196
new_bridges = {}

0 commit comments

Comments
 (0)