NAME

grpc_signal_handler_set_np - Set the signal handler.

SYNOPSIS

grpc_error_t grpc_signal_handler_set_np(int sig_num, void (*sig_handler)(int))

ARGUMENTS

int sig_num
The signal whose handler is modified.
void (*sig_handler)(int))
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: 2008-11-11 18:22:06 +0900 (火, 11 11月 2008) $