From patchwork Thu Nov 22 19:56:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: event notifier: Fix setup for win32 Date: Thu, 22 Nov 2012 09:56:11 -0000 From: Jan Kiszka X-Patchwork-Id: 201174 Message-Id: <50AE835B.1020706@siemens.com> To: Anthony Liguori , qemu-devel Cc: Paolo Bonzini , Stefan Hajnoczi 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. Signed-off-by: Jan Kiszka Reviewed-by: Stefan Hajnoczi --- Grr, the last place I looked at after hours of debugging... event_notifier-win32.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/event_notifier-win32.c b/event_notifier-win32.c index c723dad..4ed21c2 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; }