raise - send a signal to the executing process
#include <signal.h> int raise(int sig);
The raise() function sends the signal sig to the executing thread.The effect of the raise() function is equivalent to calling:
pthread_kill(pthread_self(), sig);
Upon successful completion, 0 is returned. Otherwise, a non-zero value is returned and errno is set to indicate the error.
The raise() function will fail if:
- [EINVAL]
- The value of the sig argument is an invalid signal number.
None.
None.
None.
kill(), sigaction(), <signal.h>, <sys/types.h>.
Derived from the ANSI C standard.