io: Add /dev/fdset/ support to QIOChannelFile
commitb8f244b13ca3c754c34c0ab1c2b0e7241b54318a
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Wed, 1 Nov 2017 14:25:26 +0000 (1 14:25 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 15 Feb 2018 16:54:57 +0000 (15 16:54 +0000)
tree60c33e6c042275113aeae02d1d2ed72cf2fb4409
parenta2565df12c59362c061084a0c853dace410cac26
io: Add /dev/fdset/ support to QIOChannelFile

Add /dev/fdset/ support to QIOChannelFile by calling qemu_open() instead
of open() and qemu_close() instead of close(). There is a subtle
semantic change since qemu_open() automatically sets O_CLOEXEC, but this
doesn't affect any of the users of the function.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
io/channel-file.c