SIGPIPE ignore.

git-svn-id: file:///svn/unbound/trunk@1062 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2008-04-22 10:19:24 +00:00
parent 9739014da1
commit 227ae5b7a4
2 changed files with 7 additions and 1 deletions

View file

@ -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));
}

View file

@ -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