From: Wouter Wijngaards Date: Tue, 22 Apr 2008 10:19:24 +0000 (+0000) Subject: SIGPIPE ignore. X-Git-Tag: release-0.11~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=227ae5b7a45e36707419464ac026f91e2c89548e;p=thirdparty%2Funbound.git SIGPIPE ignore. git-svn-id: file:///svn/unbound/trunk@1062 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/daemon/daemon.c b/daemon/daemon.c index 7c0c6c71c..48751364a 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -83,6 +83,8 @@ static RETSIGTYPE record_sigh(int sig) case SIGHUP: sig_record_reload++; break; + case SIGPIPE: + break; default: log_err("ignoring signal %d", sig); } @@ -98,7 +100,8 @@ signal_handling_record() if( signal(SIGTERM, record_sigh) == SIG_ERR || signal(SIGQUIT, record_sigh) == SIG_ERR || signal(SIGINT, record_sigh) == SIG_ERR || - signal(SIGHUP, record_sigh) == SIG_ERR) + signal(SIGHUP, record_sigh) == SIG_ERR || + signal(SIGPIPE, SIG_IGN) == SIG_ERR) log_err("install sighandler: %s", strerror(errno)); } diff --git a/doc/Changelog b/doc/Changelog index 8d3ffef6a..8dbd33d9f 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +22 April 2008: Wouter + - ignore SIGPIPE. + 21 April 2008: Wouter - FEATURES document. - fixup reread of config file if it was given as a full path