|
server 0.0.1
basicserverinfrastructure
|
#include <signal.h>
Go to the source code of this file.
Functions | |
| void | terminate (int signum) |
| void | init_signals (void) |
Variables | |
| volatile int | doShutdown |
| void init_signals | ( | void | ) |
Definition at line 14 of file signalHandling.c.
{
signal(SIGTERM, terminate);
signal(SIGHUP, SIG_IGN);
signal(SIGINT, terminate);
signal(SIGQUIT, terminate);
signal(SIGABRT, terminate);
signal(SIGALRM, SIG_IGN);
signal(SIGURG, SIG_IGN);
signal(SIGPIPE, SIG_IGN);
}


| void terminate | ( | int | signum | ) |
Definition at line 5 of file signalHandling.c.
{
signal(signum, SIG_IGN);
/*
* @TODO do logging here
*/
doShutdown = 1;
}

| volatile int doShutdown |
Definition at line 3 of file signalHandling.c.