diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-02-02 16:43:53 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2003-02-02 16:43:53 +0000 |
commit | 8cc90ca14d84ef8ec83989de45854a2c7855ee4f (patch) | |
tree | 771a440c41b57f043119decee41e4fcaac3ba12a /src/inspircd_io.cpp | |
parent | 6e442fdbe3e2bebea9049399163698f4a892f685 (diff) |
Added first part of server linking code
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@160 e03df62e-2008-0410-955e-edbf42e46eb7
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); |