From 121f4a86e9090274ed65792869e7caeb57f04ca6 Mon Sep 17 00:00:00 2001 From: Antonio Huete Jimenez Date: Sun, 30 Nov 2014 16:19:13 +0100 Subject: [PATCH] mountd - Ignore SIGPIPE instead of terminating the process. Taken from: FreeBSD SVN 164394 --- sbin/mountd/mountd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/mountd/mountd.c b/sbin/mountd/mountd.c index bbf05395d0..754822ddbb 100644 --- a/sbin/mountd/mountd.c +++ b/sbin/mountd/mountd.c @@ -332,6 +332,7 @@ main(int argc, char **argv) warnx("here we go"); signal(SIGHUP, huphandler); signal(SIGTERM, terminate); + signal(SIGPIPE, SIG_IGN); pidfile_write(pfh); @@ -984,7 +985,7 @@ get_exportlist(void) /* * Do not delete export for network filesystem by - * passing "export" arg to nmount(). + * passing "export" arg to mount(). * It only makes sense to do this for local filesystems. */ if (vfc.vfc_flags & VFCF_NETWORK) -- 2.41.0