stubdom: fix select after CDROM ejection
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.
Signed-off-by Samuel Thibault <[email protected]>
tools/ioemu/block-vbd.c +1 -0
@@ -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 ; }