rem: printf("ERROR:main: cannot install signal handler\n");
add: printf("ERROR:main: cannot install SIGINT signal handler\n"); goto error; } if (signal(SIGPIPE, sig_handler) == SIG_ERR ) { printf("ERROR:main: cannot install SIGPIPE signal handler\n"); goto error; } if (signal(SIGUSR1, sig_handler)  == SIG_ERR ) { printf("ERROR:main: cannot install SIGUSR1 signal handler\n"); goto error; } if (signal(SIGTERM , sig_handler)  == SIG_ERR ) { printf("ERROR:main: cannot install SIGTERM signal handler\n"); goto error; } if (signal(SIGHUP , sig_handler)  == SIG_ERR ) { printf("ERROR:main: cannot install SIGHUP signal handler\n"); goto error; } if (signal(SIGUSR2 , sig_handler)  == SIG_ERR ) { printf("ERROR:main: cannot install SIGUSR2 signal handler\n");
context: int main(int argc, char *argv[]){	if (process_cmd_line(argc, argv)!=0)		goto error;	/* to remember which one was the original thread */	main_thread = pthread_self();	/* install signal handler */	if (signal(SIGINT, sig_handler)==SIG_ERR) {		printf("ERROR:main: cannot install signal handler\n");		goto error;	}	/* init the aaa core */	if ( init_aaa_core(cfg_file)==-1 )		goto error;	/* start the tcp shell */	start_tcp_accept();	/* start the modules */	init_modules();	/* for the last of the execution, I will act as timer */	timer_ticker();	/* this call is just a trick to force the linker to add this function */	AAASendMessage(0); // !!!!!!!!!!!!!!!!!!	return 0;error:	return -1;}