bin/81230: [patch] mountd does not ignore SIGPIPE
Dmitrij Tejblum
tejblum at yandex-team.ru
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
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu May 19 00:30:08 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Dmitrij Tejblum
>Release: FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
>Description:
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.
>How-To-Repeat:
>Fix:
--- 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());
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list