Lines Matching refs:signum
528 static void exit_signal_handler(int signum) in exit_signal_handler() argument
531 logmsg("exit_signal_handler: %d", signum); in exit_signal_handler()
534 exit_signal = signum; in exit_signal_handler()
540 (void)signal(signum, exit_signal_handler); in exit_signal_handler()
563 int signum = 0; in ctrl_event_handler() local
568 signum = SIGINT; in ctrl_event_handler()
573 signum = SIGTERM; in ctrl_event_handler()
578 signum = SIGBREAK; in ctrl_event_handler()
584 if(signum) { in ctrl_event_handler()
585 logmsg("ctrl_event_handler: %lu -> %d", dwCtrlType, signum); in ctrl_event_handler()
586 raise(signum); in ctrl_event_handler()
603 int signum = 0; in main_window_proc() local
608 signum = SIGTERM; in main_window_proc()
615 if(signum) { in main_window_proc()
616 logmsg("main_window_proc: %d -> %d", uMsg, signum); in main_window_proc()
617 raise(signum); in main_window_proc()
677 static SIGHANDLER_T set_signal(int signum, SIGHANDLER_T handler, in set_signal() argument
686 sigaddset(&sa.sa_mask, signum); in set_signal()
689 if(sigaction(signum, &sa, &oldsa)) in set_signal()
694 SIGHANDLER_T oldhdlr = signal(signum, handler); in set_signal()
698 siginterrupt(signum, (int) restartable); in set_signal()