Safely wait for a signal or for a file descriptor to be ready.
Linux will also provide the analogous ppoll(2) and epoll_pwait(2).
Linux 2.6.16?
glibc currently has a broken (non-atomic) implementation of pselect(2).
Specified in SUSv3; but not widely available.
(C) 2006, Michael Kerrisk