signalHandling_8h.tex
2.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
\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.