static void exception_handler(int sig) { if (sig == SIGPWR) { DPRINTF(("SIGPWR!\n")); } exception_return(); }
/* * Exception handler for signal emulation */ static void __exception_handler(int excpt) { if (excpt > 0 && excpt <= NSIG) { SIGNAL_LOCK(); if (__sig_act[excpt].sa_handler != SIG_IGN) __sig_pending |= sigmask(excpt); SIGNAL_UNLOCK(); } __sig_flush(); exception_return(); }
/* * Catch TTY related signals and forward them * to the appropriate processes. */ static void exception_handler(int sig) { /* * Handle signals from tty input. */ switch (sig) { case SIGINT: case SIGQUIT: case SIGTSTP: case SIGTTIN: case SIGTTOU: case SIGINFO: case SIGWINCH: case SIGIO: if (ttydev != NODEV) tty_signal(sig); break; } exception_return(); }
static void exception_handler(int sig) { exception_return(); }