NAME

GRPC_SIGNAL_HANDLER_SET_NP - Set the signal handler.

SYNOPSIS

INTEGER FUNCTION GRPC_SIGNAL_HANDLER_SET_NP(SIGNO, HANDLER)

ARGUMENTS

INTEGER SIGNO
The signal whose handler is modified.
INTEGER HANDLER
The address of a signal handler.

DESCRIPTION

The GRPC_SIGNAL_HANDLER_SET_NP() function modifies signal dispositions for Ninf-G Client.

Procedures for signal handling differs according to environments and a signal to be processed.

It is unsafe to call some system calls from the signal handler registered by sigaction(). A list of safe system calls is available on the following web page and IEEE Std 1003.1(POSIX).

http://www.opengroup.org/onlinepubs/007908799/xsh/sigaction.html

This function is MT-safe.

RETURN VALUE

If successful, GRPC_NO_ERROR is returned. In the case of an error, Error code is returned.

ERRORS

GRPC_NOT_INITIALIZED
GRPC client is not initialized yet.
GRPC_OTHER_ERROR_CODE
Internal error detected.

last update : $Date$