Query: stquitaction
OS: debian
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
stsignal(3) ShapeTools Toolkit Library stsignal(3)NAMEstCatchSigs, stInterruptAction, stQuitAction, stTermAction, stCleanup, stExit - signal handlingSYNOPSIS#include <config.h> #include <sttk.h> void stCatchSigs (void); Sfunc_t(*stInterruptAction)(); Sfunc_t(*stQuitAction)(); Sfunc_t(*stTermAction)(); void stCleanup (void); void stExit (int exitCode);DESCRIPTIONstCatchSigs activates a number of interrupt handlers, defined internally in the ShapeTools toolkit library. Interrupt handlers are defined for the signals SIGINT, SIGQUIT, SIGFPE, SIGBUS, SIGSEGV, and SIGTERM. All interrupt handlers, except the one for SIGINT, cause program termination after having done some cleanup work. The cleanup consists of removing all temporary files by calling stRmRegisteredFiles(3). Some of the signal handlers are capable to execute functions defined by the application, while handling the interrupt. This mechanism is activated by assigning a functions address to the appropriate variable. The following is a complete List. Signal Variable SIGINT stInterruptAction SIGQUIT stQuitAction SIGTERM stTermAction stCleanup calls stRmRegisteredFiles(3) to remove all temporary files and the AtFS function af_cleanup(3) that orders AtFS's affairs. stExit does the same as stCleanup and additionally end the program execution returning exitCode.SEE ALSOsignal (3), stRmRegisteredFiles(3), af_cleanup(3). sttk-1.7 Thu Jun 24 17:43:32 1993 stsignal(3)
Related Man Pages |
---|
stinterruptaction(3) - debian |
sttkintro(3) - debian |
sttkintro(3) - mojave |
sttkintro(3) - osx |
sttkintro(3) - opensolaris |
Similar Topics in the Unix Linux Community |
---|
Problem with handling SIGINT |
Perl - Problems with Signal Handler |
why multiple SIGINT raises when i hit C-c |
Trapping SIGINT after restarting program. |
SIGINT issue |