/*===========================================================================* * sef_cb_signal_handler * *===========================================================================*/ PRIVATE void sef_cb_signal_handler(int signo) { /* Only check for a pending message from the kernel, ignore anything else. */ if (signo != SIGKMESS) return; do_new_kmess(); }
/*===========================================================================* * sef_cb_signal_handler * *===========================================================================*/ static void sef_cb_signal_handler(int signo) { /* Check for known signals, ignore anything else. */ switch(signo) { /* There is a pending message from the kernel. */ case SIGKMESS: do_new_kmess(); break; /* Switch to primary console on termination. */ case SIGTERM: cons_stop(); break; } }