diff options
Diffstat (limited to 'src/inspircd_io.cpp')
-rw-r--r-- | src/inspircd_io.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/inspircd_io.cpp b/src/inspircd_io.cpp index d561a9c38..6e36de477 100644 --- a/src/inspircd_io.cpp +++ b/src/inspircd_io.cpp @@ -51,12 +51,17 @@ void Start (void) } +void DeadPipe(int status) +{ + signal (SIGPIPE, DeadPipe); +} + int DaemonSeed (void) { int childpid; signal (SIGALRM, SIG_IGN); signal (SIGHUP, Rehash); - signal (SIGPIPE, SIG_IGN); + signal (SIGPIPE, DeadPipe); signal (SIGTERM, Exit); signal (SIGABRT, Exit); signal (SIGSEGV, Error); |