Adds the specified handler to the list of handlers for the specified signal, at the specified priority.
Restriction: This function is supported for native COBOL only.
Syntax:
#include "cobsignal.h"
cobsigtype_t cobpostsighandler (int signal, int priority,
PFI_SIG handler);
Parameters:
signal
|
Signal number, as defined in the
<signal.h> include file.
|
priority
|
The priority of handler in the range 1 to 254, where 254 is the highest priority. Values 127 and 129 through 139 are reserved for our use.
|
handler
|
Address of your signal handler. This must be a C function that returns an integer value.
|
Equivalent COBOL Syntax:
None.
Comments: