signalHandling_8h.tex 2.56 KB
\hypertarget{signalHandling_8h}{
\section{include/signalHandling.h File Reference}
\label{signalHandling_8h}\index{include/signalHandling.h@{include/signalHandling.h}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{signalHandling_8h_a64612b9588ed0fb05d70680db02b3630}{terminate} (int signum)
\item 
void \hyperlink{signalHandling_8h_a1de31bdef82f181f8045b94ae0933916}{init\_\-signals} (void)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
volatile int \hyperlink{signalHandling_8h_a960e985a396acaabb1bbed4f15668ade}{doShutdown}
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{signalHandling_8h_a1de31bdef82f181f8045b94ae0933916}{
\index{signalHandling.h@{signalHandling.h}!init\_\-signals@{init\_\-signals}}
\index{init\_\-signals@{init\_\-signals}!signalHandling.h@{signalHandling.h}}
\subsubsection[{init\_\-signals}]{\setlength{\rightskip}{0pt plus 5cm}void init\_\-signals (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}}
\label{signalHandling_8h_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_8h_a64612b9588ed0fb05d70680db02b3630}{
\index{signalHandling.h@{signalHandling.h}!terminate@{terminate}}
\index{terminate@{terminate}!signalHandling.h@{signalHandling.h}}
\subsubsection[{terminate}]{\setlength{\rightskip}{0pt plus 5cm}void terminate (
\begin{DoxyParamCaption}
\item[{int}]{signum}
\end{DoxyParamCaption}
)}}
\label{signalHandling_8h_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_8h_a960e985a396acaabb1bbed4f15668ade}{
\index{signalHandling.h@{signalHandling.h}!doShutdown@{doShutdown}}
\index{doShutdown@{doShutdown}!signalHandling.h@{signalHandling.h}}
\subsubsection[{doShutdown}]{\setlength{\rightskip}{0pt plus 5cm}volatile int {\bf doShutdown}}}
\label{signalHandling_8h_a960e985a396acaabb1bbed4f15668ade}


Definition at line 3 of file signalHandling.c.