Guardian C Library Calls Reference Manual

raise
3-148 128833Guardian TNS C Library Calls Reference Manual
Reference to Library Calls
raise
The raise function causes the indicated signal to be raised in the current process.
sig
is the signal to be raised.
Return Value
is zero if the call is successful. Otherwise, a nonzero value is returned.
Usage Guidelines
The ISO C Standard defined signals SIGABRT, SIGINT, and SIGTERM can only be
generated by an explicit call to the raise function. The signal handler SIG_IGN can
be registered for these signals.
The condition specified by each of these signals is:
#include <signalh>
int raise(int sig);
SIGABRT
abnormal termination, such as is initiated by the abort function
SIGINT
receipt of an interactive attention signal
SIGTERM
a termination request sent to the program termination request sent to
the program