aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2012-11-22 20:56:11 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2012-11-28 13:33:01 -0600
commite9bff10f8db94912b1b0e6e2e3394cae02faf614 (patch)
tree34b0796ab0e9828c56c1a65ff15a5f280873d704
parent264ac41ca171c53eead7e037bc78babb3f0f1bc3 (diff)
event notifier: Fix setup for win32
The event notifier state is only reset by test_and_clear. But we created the windows event object with auto-reset, which subtly swallowed events. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--event_notifier-win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event_notifier-win32.c b/event_notifier-win32.c
index c723dadf31..4ed21c2a7c 100644
--- a/event_notifier-win32.c
+++ b/event_notifier-win32.c
@@ -16,7 +16,7 @@
int event_notifier_init(EventNotifier *e, int active)
{
- e->event = CreateEvent(NULL, FALSE, FALSE, NULL);
+ e->event = CreateEvent(NULL, TRUE, FALSE, NULL);
assert(e->event);
return 0;
}