Conversion of signal handler to signalfd.
Change signalfd mask, to allow SIGALRM to be used for testing.
Signal handling ported to signalfd using now only select instead of pselect.