summaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index d02be3eb6..ea0b6c503 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -217,6 +217,14 @@ class SignalExit : public Signal
}
};
+class SignalNothing : public Signal
+{
+ public:
+ SignalNothing(int sig) : Signal(sig) { }
+
+ void OnSignal() { }
+};
+
void Init(int ac, char **av)
{
int started_from_term = isatty(0) && isatty(1) && isatty(2);
@@ -385,6 +393,7 @@ void Init(int ac, char **av)
static SignalReload sig_hup(SIGHUP);
static SignalExit sig_term(SIGTERM), sig_int(SIGINT);
+ static SignalNothing sig_pipe(SIGPIPE);
/* Initialize multi-language support */
Log(LOG_DEBUG) << "Loading Languages...";