2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Fix ipmi events if pyghmi spins in an eventloop

If circumstances inside pyghmi cause it to be looping in
an event loop, confluent was getting work done, but
the code to wake up the eventlet greenthreads wouldn't get tickled.
Address this by also waking up waiters in the function that is
invited to the pyghmi event loop party.
This commit is contained in:
Jarrod Johnson 2014-01-29 22:08:48 -05:00
parent 285b1df3a5
commit b944677f85

View File

@ -67,7 +67,12 @@ def _process_chgs(intline):
except: # assure the thread does not crash and burn
import sys
print sys.exc_info()[2]
# If we are inside a loop within pyghmi, this is our only shot
# so we have to wake up anything that might be interested in
# state changes here as well as the evtloop
while ipmiwaiters:
waiter = ipmiwaiters.popleft()
waiter.send()
def get_conn_params(node, configdata):