Dup the qemu_eventfd() return
commitbaa32a99189b35897bf36a2107987a7331bfeaee
authorMark McLoughlin <markmc@redhat.com>
Thu, 30 Oct 2008 17:51:49 +0000 (30 17:51 +0000)
committerAvi Kivity <avi@redhat.com>
Sun, 2 Nov 2008 09:57:02 +0000 (2 11:57 +0200)
tree3965db464412e4eb7ca86ba2066349be0c2b6cc0
parent7be94fba54cfd5ad8c2057ce3471011953850612
Dup the qemu_eventfd() return

qemu_eventfd() returns two file descriptors, both of which
must be closed when pipe() is used in the absence of eventfd().

Duplicate the eventfd() file descriptor so that closing
both descriptors will work in that case.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
compatfd.c