Home | History | Annotate | Download | only in pppd

Lines Matching defs:SIGNAL

76 #include <signal.h>
615 new_phase(PHASE_DORMANT); /* allow signal to end holdoff */
673 info("Terminating on signal %d", got_sigterm);
691 * setup_signals - initialize signal handling.
699 * Compute mask of all interesting signals and install signal handlers
700 * for each. Only one signal handler may be active at a time. Therefore,
710 #define SIGNAL(s, handler) do { \
713 fatal("Couldn't establish signal handler (%d): %m", s); \
718 SIGNAL(SIGHUP, hup); /* Hangup */
719 SIGNAL(SIGINT, term); /* Interrupt */
720 SIGNAL(SIGTERM, term); /* Terminate */
721 SIGNAL(SIGCHLD, chld);
723 SIGNAL(SIGUSR1, toggle_debug); /* Toggle debug flag */
724 SIGNAL(SIGUSR2, open_ccp); /* Reopen CCP */
730 SIGNAL(SIGABRT, bad_signal);
731 SIGNAL(SIGALRM, bad_signal);
732 SIGNAL(SIGFPE, bad_signal);
733 SIGNAL(SIGILL, bad_signal);
734 SIGNAL(SIGPIPE, bad_signal);
735 SIGNAL(SIGQUIT, bad_signal);
736 SIGNAL(SIGSEGV, bad_signal);
738 SIGNAL(SIGBUS, bad_signal);
741 SIGNAL(SIGEMT, bad_signal);
744 SIGNAL(SIGPOLL, bad_signal);
747 SIGNAL(SIGPROF, bad_signal);
750 SIGNAL(SIGSYS, bad_signal);
753 SIGNAL(SIGTRAP, bad_signal);
756 SIGNAL(SIGVTALRM, bad_signal);
759 SIGNAL(SIGXCPU, bad_signal);
762 SIGNAL(SIGXFSZ, bad_signal);
770 signal(SIGPIPE, SIG_IGN);
1134 * new_phase - signal the start of a new phase of pppd's operation.
1362 * kill_my_pg - send a signal to our process group, and ignore it ourselves.
1376 * The kill() above made the signal pending for us, as well as
1379 * will cause the pending signal to be discarded. If we did the
1380 * kill() after setting the signal to be ignored, it is unspecified
1381 * (by POSIX) whether the signal is immediately discarded or left
1383 * would be delivered after the current signal handler exits,
1392 * hup - Catch SIGHUP signal.
1396 * signal, we just take the link down.
1405 /* Send the signal to the [dis]connector process(es) also */
1414 * term - Catch SIGTERM signal and SIGINT signal (^C/del).
1426 /* Send the signal to the [dis]connector process(es) also */
1435 * chld - Catch SIGCHLD signal.
1449 * toggle_debug - Catch SIGUSR1 signal.
1468 * open_ccp - Catch SIGUSR2 signal.
1484 * bad_signal - We've caught a fatal signal. Clean up state and exit.
1495 error("Fatal signal %d", sig);
1809 warn("Child process %s (pid %d) terminated with signal %d",