/** * USR1 signal is used when AMF wants instantiate us as a * component. Wake up the main thread so it can register with * AMF. * * @param i_sig_num */ static void sigusr1_handler(int sig) { (void)sig; signal(SIGUSR1, SIG_IGN); ncs_sel_obj_ind(immd_cb->usr1_sel_obj); /* Do not use trace in the signal handler It can apparently cause the main thread to spin or deadlock. See ticket #1173. */ }
/** * TERM signal handler * @param sig */ static void sigterm_handler(int sig) { ncs_sel_obj_ind(term_sel_obj); signal(SIGTERM, SIG_IGN); }
/** * TERM signal handler * * @param sig[in] */ static void sigterm_handler(int sig) { (void) sig; signal(SIGTERM, SIG_IGN); ncs_sel_obj_ind(&term_sel_obj); }
/** * USR1 signal is used when AMF wants to instantiate us as a * component. Wakes up the main thread to register with * AMF. * * @param i_sig_num */ static void sigusr1_handler(int sig) { (void)sig; signal(SIGUSR1, SIG_IGN); ncs_sel_obj_ind(usr1_sel_obj); }
/** * USR1 signal handler to activate AMF * @param sig */ static void usr1_sig_handler(int sig) { /*signal(SIGUSR1, SIG_IGN); */ if (smfd_cb->amf_hdl == 0) ncs_sel_obj_ind(smfd_cb->usr1_sel_obj); }