qemu-ga: Implement alternative to O_ASYNC
authorAndreas Färber <andreas.faerber@web.de>
Mon, 30 Apr 2012 16:00:54 +0000 (18:00 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 1 May 2012 10:49:23 +0000 (10:49 +0000)
commite61ab1da7e98357da47c54d8f893b9bd6ff2f7f9
tree8b9825dad53c02b06869bf78415756ce3a17dee1
parent3239ad04695f95ce060bdc2a0a6e1243d2068971
qemu-ga: Implement alternative to O_ASYNC

ga_channel_open() was using open flag O_ASYNC for SIGIO-driven I/O.
This breaks on illumos, so fall back to POSIX I_SETSIG ioctl (SIGPOLL).

Signed-off-by: Lee Essen <lee.essen@nowonline.co.uk>
Signed-off-by: Andreas Färber <andreas.faerber@web.de>
Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
qga/channel-posix.c