sqleisig API - Install signal handler
Installs the default interrupt (usually Control-C or Control-Break, or both) signal handler. When this default handler detects an interrupt signal, it resets the signal and calls sqleintr.
Authorization
None
Required connection
None
API include file
sqlenv.h
API and data structure syntax
SQL_API_RC SQL_API_FN
sqleisig (
struct sqlca * pSqlca);
SQL_API_RC SQL_API_FN
sqlgisig (
struct sqlca * pSqlca);
sqleisig API parameters
- pSqlca
- Output. A pointer to the sqlca structure.
Usage notes
If an application has no signal handler, and an interrupt is received, the application is terminated. This API provides simple signal handling, and can be used if an application does not have extensive interrupt handling requirements.
The API must be called for the interrupt signal handler to function properly.
If an application requires a more elaborate interrupt handling scheme, a signal handling routine that can also call the sqleintr API can be developed. Use either the operating system call or the language-specific library signal function. The sqleintr API should be the only database manager operation performed by a customized signal handler. Follow all operating system programming techniques and practices to ensure that the previously installed signal handlers work properly.
REXX API syntax
INSTALL SIGNAL HANDLER