All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] stubdom: fix select after CDROM ejection
@ 2008-03-11 18:41 Samuel Thibault
  0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-03-11 18:41 UTC (permalink / raw)
  To: xen-devel

stubdom: fix select calls after CDROM ejection
by calling qemu_set_fd_handler before closing the fd.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>

diff -r c149cedf76b9 tools/ioemu/block-vbd.c
--- a/tools/ioemu/block-vbd.c	Tue Mar 11 17:47:01 2008 +0000
+++ b/tools/ioemu/block-vbd.c	Tue Mar 11 18:33:15 2008 +0000
@@ -271,6 +271,7 @@ static void vbd_close(BlockDriverState *
     BDRVVbdState *s = bs->opaque;
     bs->total_sectors = 0;
     if (s->fd >= 0) {
+        qemu_set_fd_handler(s->fd, NULL, NULL, NULL);
         close(s->fd);
         s->fd = -1;
     }

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-11 18:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-11 18:41 [PATCH] stubdom: fix select after CDROM ejection Samuel Thibault

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.