zabbix-agent2/src/libs/zbxnix/sighandler.c
/******************************************************************************
 *                                                                            *
 * Function: zbx_set_child_signal_handler                                     *
 *                                                                            *
 * Purpose: set the handlers for child process signals                        *
 *                                                                            *
 ******************************************************************************/
zbx_set_child_signal_handler

Purpose: set the handlers for child process signals
zbx_set_child_signal_handler Purpose : set the handlers for child process signals
void 	zbx_set_child_signal_handler(void)
{
	struct sigaction	phan;
	sig_parent_pid = (int)getpid();
	sigemptyset(&phan.sa_mask);
	phan.sa_flags = SA_SIGINFO | SA_NOCLDSTOP;
	phan.sa_sigaction = child_signal_handler;
	sigaction(SIGCHLD, &phan, NULL);
}
void zbx_set_child_signal_handler ( void ) { struct sigaction phan ; sig_parent_pid = ( int ) getpid ( ) ; sigemptyset ( & phan . sa_mask ) ; phan . sa_flags = SA_SIGINFO | SA_NOCLDSTOP ; phan . sa_sigaction = child_signal_handler ; sigaction ( SIGCHLD , & phan , NULL ) ; }
Function: zbx_set_child_signal_handler                                     
                                                                            
 Purpose: set the handlers for child process signals
Function : zbx_set_child_signal_handler Purpose : set the handlers for child process signals