Date: Thu, 19 May 2005 04:25:33 +0400 (MSD) From: Dmitrij Tejblum <tejblum@yandex-team.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/81230: [patch] mountd does not ignore SIGPIPE Message-ID: <200505190025.j4J0PXQc052037@developer.yandex.ru> Resent-Message-ID: <200505190030.j4J0U9g3085331@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200505190025.j4J0PXQc052037>