sigrelse() — Remove a signal from a thread
Standards
Standards / Extensions | C or C++ | Dependencies |
---|---|---|
XPG4.2 |
both |
Format
#define _XOPEN_SOURCE_EXTENDED 1
#include <signal.h>
int sigrelse(int sig);
General description
The sigrelse() function provides a simplified method for removing the signal specified by the argument sig from the calling thread's signal mask.
Usage notes
The use of the SIGTHSTOP and SIGTHCONT signal is not supported with this function.
Returned value
If successful, sigrelse() returns 0.
If unsuccessful, sigrelse() returns -1 and sets
errno to one of the following values:
- Error Code
- Description
- EINVAL
- The value of the argument sig is not a valid signal type or it is SIGKILL, SIGSTOP, or SIGTRACE.