| Branch: | Revision:

root / compatfd.c @ a74cdab4

History | View | Annotate | Download (2.3 kB)

# Date Author Comment
30faaf70 02/25/2011 10:16 pm Tristan Gingold

Use sigwait instead of sigwaitinfo.

Fix compilation failure on Darwin.

Signed-off-by: Tristan Gingold <>
Signed-off-by: Blue Swirl <>

dcc38d1c 10/21/2010 12:15 am Marcelo Tosatti

signalfd compatibility

Port qemu-kvm's signalfd compat code.

commit 5a7fdd0abd7cd24dac205317a4195446ab8748b5
Author: Anthony Liguori <>
Date: Wed May 7 11:55:47 2008 -0500

Use signalfd() in io-thread
This patch reworks the IO thread to use signalfd() instead of sigtimedwait()...
9e472e10 10/08/2008 10:50 pm aliguori

Fix IO performance regression in sparc

Replace signalfd with signal handler/pipe. There is no way to interrupt
the CPU execution loop when a file descriptor becomes readable. This
results in a large performance regression in sparc emulation during

27463101 09/27/2008 11:58 pm aliguori

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...

b8ae7553 09/27/2008 11:41 pm aliguori

Fix whitespace damage in compatfd

Spotted by malc.

Signed-off-by: Anthony Liguori <>

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162

bcdf9b4d 09/10/2008 09:18 pm aliguori

Add missing files from previous commit.

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162