Eric Blake a11bd2e6cc event: fix event-handling data race
This bug has been present since before the time that commit
f8a519 (Dec 2008) tried to make the dispatch loop re-entrant.

Dereferencing eventLoop.handles outside the lock risks crashing, since
any other thread could have reallocated the array in the meantime.
It's a narrow race window, however, and one that would have most
likely resulted in passing bogus data to the callback rather than
actually causing a segv, which is probably why it has gone undetected
this long.

* daemon/event.c (virEventDispatchHandles): Cache data while
inside the lock, as the array might be reallocated once outside.
2011-01-21 15:54:54 -07:00
..
2011-01-21 15:54:54 -07:00
2010-12-21 13:21:25 -07:00
2009-09-21 14:41:45 +01:00
2010-07-23 17:30:33 -04:00
2010-07-23 17:30:33 -04:00
2010-07-23 17:30:33 -04:00
2010-07-23 17:30:33 -04:00
2010-11-23 15:04:42 -07:00