top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is the API for signal handling?

+2 votes
224 views
What is the API for signal handling?
posted Nov 30, 2015 by Kali Mishra

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

sqleisig API : Install signal handler

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.

answer Dec 7, 2015 by Amit Kumar Pandey
...