sigaction
sigaction() returns 0 on success; on error, -1 is returned, and errno is set to indicate the error.