mountd - Ignore SIGPIPE instead of terminating the process.
authorAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 30 Nov 2014 15:19:13 +0000 (16:19 +0100)
committerAntonio Huete Jimenez <tuxillo@quantumachine.net>
Sun, 30 Nov 2014 15:19:13 +0000 (16:19 +0100)
Taken from: FreeBSD SVN 164394

sbin/mountd/mountd.c

index bbf0539..754822d 100644 (file)
@@ -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)