in reply to Re^4: Alarm and blocking I/O.
in thread Alarm and blocking I/O.

Maybe something disables the signals. Run your program via strace