Skip to contentSkip to conversation

stubdom: fix select after CDROM ejection

PATCH New Samuel Thibault 1 participant 1 message Mar 11, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stubdom: fix select after CDROM ejection

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

tools/ioemu/block-vbd.c +1 -0
diff -r c149cedf76b9 tools/ioemu/block-vbd.c
@@ -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;
     }