]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/statd/statd.c
Imported Debian patch 1.0.6-3.1
[nfs-utils.git] / utils / statd / statd.c
index b57f71bb0091bf1bc46096e5dbb996d88cc33107..cf30fe46d0a17c3da481346b85f3955dd1165d9f 100644 (file)
@@ -399,6 +399,11 @@ int main (int argc, char **argv)
        signal (SIGTERM, killer);
        /* 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);