Ignoring SIGPIPE. Thanks Sam Trenholme. - geomyidae - A small C-based gopherd.
git clone git://bitreich.org/geomyidae/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/geomyidae/
Log
Files
Refs
Tags
README
LICENSE
---
commit 866af53f96a6cc52a99b7103f72a8e31dedaee84
parent 565abed9574e64b729a25be8704863aa6230ff3c
Author: Christoph Lohmann <20h@r-36.net>
Date:   Wed, 22 Feb 2012 20:58:20 +0100

Ignoring SIGPIPE. Thanks Sam Trenholme.

Diffstat:
  M main.c                              |       2 ++

1 file changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/main.c b/main.c
@@ -235,6 +235,8 @@ initsignals(void)
         signal(SIGABRT, sighandler);
         signal(SIGTERM, sighandler);
         signal(SIGKILL, sighandler);
+
+        signal(SIGPIPE, SIG_IGN);
 }
 
 void