Definition | #include <signal.h> int raise(int sig);
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Parameters | int sig Signal to be sent to its own program. The symbolic constants listed in the following overview under “SIGNR” may be used for sig. These constants are defined in the include file <signal.h>.
Signals makred with + are currently not supported. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Return val. | 0 | the signal was sent successfully. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
-1 | the signal could not be sent, because sig is not a valid signal number. In addition, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Notes | With the exception of SIGKILL, the If the program does not provide for the handling of
Signal SIGABRT Signal SIGKILL | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example | A program that aborts itself. #include <signal.h> int main(void) { for(;;) raise(SIGKILL); return 0; } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
See also | alarm, atexit, exit, _exit, signal |