Make compatfd fallback more robust
commit27463101f15bee17d2f46642c48a7373bc6c595e
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 27 Sep 2008 20:58:43 +0000 (27 20:58 +0000)
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>
Sat, 27 Sep 2008 20:58:43 +0000 (27 20:58 +0000)
treed542c7676a0da3b27271b60df27eab23e879368a
parentb8ae75538e8a9db54207e6bf3da484939bb5df7e
Make compatfd fallback more robust

Be more friendly when signalfd() fails, and also add configure checks to detect
that syscall(SYS_signalfd) actually works.  malc pointed out that some installs
do not have /usr/include/linux headers that are in sync with the glibc headers
so why SYS_signalfd is defined, it's #defined to _NR_signalfd which is not
defined in the /usr/include/linux header.

While this is a distro bug, it doesn't hurt to do a more thorough job in
detection.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5334 c046a42c-6fe2-441c-8c8c-71466251a162
block-raw-posix.c
compatfd.c
configure