From: Paolo Bonzini <pbonzini@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, qemu-devel@nongnu.org
Cc: famz@redhat.com, stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH 2/2] test-aio: Fix event notifier cleanup
Date: Mon, 23 Nov 2015 15:46:22 +0100 [thread overview]
Message-ID: <565326BE.3050007@redhat.com> (raw)
In-Reply-To: <1448282346-11626-3-git-send-email-kwolf@redhat.com>
On 23/11/2015 13:39, Kevin Wolf wrote:
> One test case closed an event notifier (event_notifier_cleanup())
> without first disabling it (set_event_notifier(..., NULL)). This
> resulted in a leftover handle 0 that was added to each subsequent
> WaitForMultipleObjects() call, causing the function to fail (invalid
> handle).
>
> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
> ---
> tests/test-aio.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/test-aio.c b/tests/test-aio.c
> index 1623803..e188d8c 100644
> --- a/tests/test-aio.c
> +++ b/tests/test-aio.c
> @@ -393,6 +393,7 @@ static void test_aio_external_client(void)
> aio_enable_external(ctx);
> }
> assert(aio_poll(ctx, false));
> + set_event_notifier(ctx, &data.e, NULL);
> event_notifier_cleanup(&data.e);
> }
> }
>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
next prev parent reply other threads:[~2015-11-23 14:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 12:39 [Qemu-devel] [PATCH for-2.5 0/2] Fix "make check" with mingw and Wine Kevin Wolf
2015-11-23 12:39 ` [Qemu-devel] [PATCH 1/2] tests/Makefile: Add more dependencies for test-timed-average Kevin Wolf
2015-11-23 14:46 ` Paolo Bonzini
2015-11-23 16:09 ` Kevin Wolf
2015-11-23 16:55 ` Paolo Bonzini
2015-11-23 12:39 ` [Qemu-devel] [PATCH 2/2] test-aio: Fix event notifier cleanup Kevin Wolf
2015-11-23 14:46 ` Paolo Bonzini [this message]
2015-11-24 5:57 ` [Qemu-devel] [PATCH for-2.5 0/2] Fix "make check" with mingw and Wine Stefan Hajnoczi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=565326BE.3050007@redhat.com \
--to=pbonzini@redhat.com \
--cc=famz@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.