From: Fredrik Tolf Date: Fri, 3 Sep 2010 06:03:12 +0000 (+0200) Subject: htparser: Ignore SIGPIPE. X-Git-Tag: 0.1~29 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=15fa3fe85e9f499003defd7134bfeaa65d3959e2 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. --- 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); }