/*===========================================================================* * rl_stop * *===========================================================================*/ static void rl_stop(void) { re_t *rep; rep = &re_state; rl_outb(rep->re_base_port, RL_CR, RL_CR_RST); }
/*===========================================================================* * sef_cb_signal_handler * *===========================================================================*/ static void sef_cb_signal_handler(int signo) { re_t *rep; /* Only check for termination signal, ignore anything else. */ if (signo != SIGTERM) return; rep = &re_state; if (rep->re_mode == REM_ENABLED) rl_outb(rep->re_base_port, RL_CR, RL_CR_RST); exit(0); }