signalHandling_8c.tex 2.63 KB
\hypertarget{signalHandling_8c}{
\section{src/signalHandling.c File Reference}
\label{signalHandling_8c}\index{src/signalHandling.c@{src/signalHandling.c}}
}
{\ttfamily \#include $<$signal.h$>$}\par
Include dependency graph for signalHandling.c:
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{signalHandling_8c_a64612b9588ed0fb05d70680db02b3630}{terminate} (int signum)
\item 
void \hyperlink{signalHandling_8c_a1de31bdef82f181f8045b94ae0933916}{init\_\-signals} (void)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
volatile int \hyperlink{signalHandling_8c_a960e985a396acaabb1bbed4f15668ade}{doShutdown}
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{signalHandling_8c_a1de31bdef82f181f8045b94ae0933916}{
\index{signalHandling.c@{signalHandling.c}!init\_\-signals@{init\_\-signals}}
\index{init\_\-signals@{init\_\-signals}!signalHandling.c@{signalHandling.c}}
\subsubsection[{init\_\-signals}]{\setlength{\rightskip}{0pt plus 5cm}void init\_\-signals (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{signalHandling_8c_a1de31bdef82f181f8045b94ae0933916}


Definition at line 14 of file signalHandling.c.


\begin{DoxyCode}
{
    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);
}
\end{DoxyCode}


Here is the call graph for this function:




Here is the caller graph for this function:


\hypertarget{signalHandling_8c_a64612b9588ed0fb05d70680db02b3630}{
\index{signalHandling.c@{signalHandling.c}!terminate@{terminate}}
\index{terminate@{terminate}!signalHandling.c@{signalHandling.c}}
\subsubsection[{terminate}]{\setlength{\rightskip}{0pt plus 5cm}void terminate (
\begin{DoxyParamCaption}
\item[{int}]{signum}
\end{DoxyParamCaption}
)}}
\label{signalHandling_8c_a64612b9588ed0fb05d70680db02b3630}


Definition at line 5 of file signalHandling.c.


\begin{DoxyCode}
{
    signal(signum, SIG_IGN);
    /*
     * @TODO do logging here
     */
    doShutdown = 1;
}
\end{DoxyCode}


Here is the caller graph for this function:




\subsection{Variable Documentation}
\hypertarget{signalHandling_8c_a960e985a396acaabb1bbed4f15668ade}{
\index{signalHandling.c@{signalHandling.c}!doShutdown@{doShutdown}}
\index{doShutdown@{doShutdown}!signalHandling.c@{signalHandling.c}}
\subsubsection[{doShutdown}]{\setlength{\rightskip}{0pt plus 5cm}volatile int {\bf doShutdown}}}
\label{signalHandling_8c_a960e985a396acaabb1bbed4f15668ade}


Definition at line 3 of file signalHandling.c.