summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2004-12-03 03:32:16 +0000
committerneilbrown <neilbrown>2004-12-03 03:32:16 +0000
commit43bca307dd6452c460c33323406164cdcdb44cf6 (patch)
tree13fb5dbf8b78a7114b58bbbf0c27ce51d06dd204 /utils
parent9944b3488a4c445f7a37d2268ae43feb96e19a5c (diff)
downloadnfs-utils-43bca307dd6452c460c33323406164cdcdb44cf6.tar.gz
nfs-utils-43bca307dd6452c460c33323406164cdcdb44cf6.tar.xz
nfs-utils-43bca307dd6452c460c33323406164cdcdb44cf6.zip
Ignore SIGPIPE in statd
Diffstat (limited to 'utils')
-rw-r--r--utils/statd/statd.c5
1 files changed, 5 insertions, 0 deletions
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);