]> xenbits.xensource.com Git - xen.git/commitdiff
stubdom: fix select calls after CDROM ejection
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:28:14 +0000 (11:28 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 11:28:14 +0000 (11:28 +0000)
by calling qemu_set_fd_handler before closing the fd.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
tools/ioemu/block-vbd.c

index 937bb5e62d1497a0715435b3901df5c26efbbac7..b8ad91692e65587ddfb14ed6f7ed7f58f3cd752c 100644 (file)
@@ -271,6 +271,7 @@ static void vbd_close(BlockDriverState *bs)
     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;
     }