ia64/xen-unstable

changeset 17235:b543b4b759ba

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>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 18 11:28:14 2008 +0000 (2008-03-18)
parents 14b2319d6126
children ea5ee63548e4
files tools/ioemu/block-vbd.c
line diff
     1.1 --- a/tools/ioemu/block-vbd.c	Tue Mar 18 11:27:36 2008 +0000
     1.2 +++ b/tools/ioemu/block-vbd.c	Tue Mar 18 11:28:14 2008 +0000
     1.3 @@ -271,6 +271,7 @@ static void vbd_close(BlockDriverState *
     1.4      BDRVVbdState *s = bs->opaque;
     1.5      bs->total_sectors = 0;
     1.6      if (s->fd >= 0) {
     1.7 +        qemu_set_fd_handler(s->fd, NULL, NULL, NULL);
     1.8          close(s->fd);
     1.9          s->fd = -1;
    1.10      }