bin/81230: [patch] mountd does not ignore SIGPIPE

Dmitrij Tejblum tejblum at
Thu May 19 00:30:10 GMT 2005

>Number:         81230
>Category:       bin
>Synopsis:       [patch] mountd does not ignore SIGPIPE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 19 00:30:08 GMT 2005
>Originator:     Dmitrij Tejblum
>Release:        FreeBSD 5.4-STABLE i386


mountd is a network daemon which serve requests over TCP. It does not ignore 
SIGPIPE, so an unexpected problem with its client may cause SIGPIPE and kill



--- mountd.c	Thu May 19 04:14:51 2005
+++ mountd.c	Thu May 19 04:15:20 2005
@@ -351,6 +351,7 @@
 	signal(SIGHUP, huphandler);
 	signal(SIGTERM, terminate);
+	signal(SIGPIPE, SIG_IGN);
 	{ FILE *pidfile = fopen(_PATH_MOUNTDPID, "w");
 	  if (pidfile != NULL) {
 		fprintf(pidfile, "%d\n", getpid());

More information about the freebsd-bugs mailing list