Assigns mask to the current set of masked signals and then waits for a signal.
#include <signal.h> int sigpause (int mask);
When control returns to sigpause, the function restores the previous set of masked signals, sets errno to EINTR, and returns -1 to indicate an interrupt. The value EINTR is defined in the <errno.h> header file.
-1 | Indicates an interrupt. errno is set to EINTR. |