RAISE(3) Library Functions Manual RAISE(3)

raisesend 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 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:

The value of the sig argument is an invalid signal number.

None.

None.

None.

kill(3) , sigaction(3) , <signal.h> , <sys/types.h> .

Derived from the ANSI C standard.

February 1997 posix.fail