Use timerfd if available
Created by: austriancoder
The timerfd interface is a Linux-specific set of functions that present POSIX timers as file descriptors (hence the fd) rather than signals thus avoiding all that tedious messing about with signal handlers. It was first implemented in GNU libc 2.8 and kernel 2.6.25.
Signed-off-by: Christian Gmeiner christian.gmeiner@gmail.com