From 15fa3fe85e9f499003defd7134bfeaa65d3959e2 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Fri, 3 Sep 2010 08:03:12 +0200 Subject: [PATCH] htparser: Ignore SIGPIPE. Shouldn't *really* be necessary, but it seems hard to ensure that gnutls uses MSG_NOSIGNAL, and it's not as if it really hurts. At least not a lot. --- src/htparser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/htparser.c b/src/htparser.c index 0824902..c8064f2 100644 --- a/src/htparser.c +++ b/src/htparser.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #ifdef HAVE_CONFIG_H @@ -483,6 +484,7 @@ int main(int argc, char **argv) exit(1); } } + signal(SIGPIPE, SIG_IGN); if(daemonize) { daemon(0, 0); } -- 2.11.0