]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Prevent overfilling of self-pipe in python event loop
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 27 Jan 2011 12:54:27 +0000 (12:54 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 28 Jan 2011 11:48:27 +0000 (11:48 +0000)
commit331d7b09a7724528bf398bc4043648e01203960f
tree885c834d19d490dfe0b05e109b0a59d7ad403d54
parentcc4447b68abf647ad41810b490c6a7b2d0291fd2
Prevent overfilling of self-pipe in python event loop

If the event loop takes a very long time todo something, it is
possible for the 'self pipe' buffer to become full at which
point the entire event loop + remote driver deadlock. Use a
boolean flag to ensure we have strict one-in, one-out behaviour
on writes/reads of the 'self pipe'
examples/domain-events/events-python/event-test.py