add: signal(SIGINT, xj_sig_handler); signal(SIGQUIT, xj_sig_handler); signal(SIGSEGV, xj_sig_handler);
context: void xj_sig_handler(int s) {	signal(SIGTERM, xj_sig_handler);	main_loop = 0;	DBG("XJAB:xj_worker:%d: SIGNAL received=%d\n", _xj_pid, s);}