device-assignment: Better fd tracking
commitdd09bf100b244a4af389eb5e427e1986836366e5
authorAlex Williamson <alex.williamson@redhat.com>
Thu, 8 Jul 2010 14:58:32 +0000 (8 08:58 -0600)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 12 Jul 2010 18:12:43 +0000 (12 15:12 -0300)
tree8b3dd2a818cfdc97b190afcce4f8b4aec6fa1eaf
parentabdb34211eebd964d097b55ee1a1ed05f8498477
device-assignment: Better fd tracking

Commit 909bfdba fixed a hole with not closing resource file descriptors
but we need to be more careful about tracking which are real fds,
otherwise we might close fd 0, which doesn't work out so well for stdio.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Acked-by: Donald Dutile <ddutile@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
hw/device-assignment.c