]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Ignore SIGPIPE in statd
authorneilbrown <neilbrown>
Fri, 3 Dec 2004 03:32:16 +0000 (03:32 +0000)
committerneilbrown <neilbrown>
Fri, 3 Dec 2004 03:32:16 +0000 (03:32 +0000)
ChangeLog
utils/statd/statd.c

index aa88488f0fd3b4413361cb508b4ec9aa2b9bf755..ddfbe943efea682b031acddb7a12fe3336a98a29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index f666bcd4cba4e1e61247e715d293e06fc281fd88..3f6411586bc055a6990d097ab5e238dc3a9b3b57 100644 (file)
@@ -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);