diff options
author | neilbrown <neilbrown> | 2004-12-03 03:32:16 +0000 |
---|---|---|
committer | neilbrown <neilbrown> | 2004-12-03 03:32:16 +0000 |
commit | 43bca307dd6452c460c33323406164cdcdb44cf6 (patch) | |
tree | 13fb5dbf8b78a7114b58bbbf0c27ce51d06dd204 | |
parent | 9944b3488a4c445f7a37d2268ae43feb96e19a5c (diff) | |
download | nfs-utils-43bca307dd6452c460c33323406164cdcdb44cf6.tar.gz nfs-utils-43bca307dd6452c460c33323406164cdcdb44cf6.tar.xz nfs-utils-43bca307dd6452c460c33323406164cdcdb44cf6.zip |
Ignore SIGPIPE in statd
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | utils/statd/statd.c | 5 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2004-12-03 Trond Myklebust <trond.myklebust@fys.uio.no> + + * utils/statd/statd.c(main): ignore SIGPIPE + 2004-11-22 "J. Bruce Fields" <bfields@fieldses.org> * tools/rpcdebug/rpcdebug.c: support aliases "nfsdebug" and diff --git a/utils/statd/statd.c b/utils/statd/statd.c index f666bcd..3f64115 100644 --- a/utils/statd/statd.c +++ b/utils/statd/statd.c @@ -422,6 +422,11 @@ int main (int argc, char **argv) signal(SIGUSR1, sigusr); /* WARNING: the following works on Linux and SysV, but not BSD! */ signal(SIGCHLD, SIG_IGN); + /* + * Ignore SIGPIPE to avoid statd dying when peers close their + * TCP connection while we're trying to reply to them. + */ + signal(SIGPIPE, SIG_IGN); /* initialize out_port */ statd_get_socket(out_port); |