X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fstatd%2Fstatd.c;h=3f6411586bc055a6990d097ab5e238dc3a9b3b57;hb=c499db6ad1a084901a971cb24946f0ab51454d99;hp=f666bcd4cba4e1e61247e715d293e06fc281fd88;hpb=af93e0306d87bba3f703386fd6390e9bf8e76816;p=nfs-utils.git 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);