From e9bff10f8db94912b1b0e6e2e3394cae02faf614 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Thu, 22 Nov 2012 20:56:11 +0100 Subject: [PATCH] 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 Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- event_notifier-win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }