From: Jan Kiszka Date: Thu, 22 Nov 2012 19:56:11 +0000 (+0100) Subject: event notifier: Fix setup for win32 X-Git-Tag: qemu-xen-4.3.0-rc1~17^2~15 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=e9bff10f8db94912b1b0e6e2e3394cae02faf614;p=qemu-upstream-4.3-testing.git 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 --- diff --git a/event_notifier-win32.c b/event_notifier-win32.c index c723dadf3..4ed21c2a7 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; }