The sigrelse () function removes a signal sig from the signal mask of the calling process. sigrelse will return 0 upon successful completion. If the function is passed an illegal signal number, then errno will be set to [EINVAL], and sigrelse() will return -1.