From tejblum@developer.yandex.ru  Thu May 19 00:25:36 2005
Return-Path: <tejblum@developer.yandex.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 008DE16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 May 2005 00:25:36 +0000 (GMT)
Received: from developer.yandex.ru (developer.yandex.ru [213.180.193.15])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1A6EB43D80
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 May 2005 00:25:35 +0000 (GMT)
	(envelope-from tejblum@developer.yandex.ru)
Received: from developer.yandex.ru (localhost [127.0.0.1])
	by developer.yandex.ru (8.13.3/8.13.1) with ESMTP id j4J0PXgu052038
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 May 2005 04:25:33 +0400 (MSD)
	(envelope-from tejblum@developer.yandex.ru)
Received: (from tejblum@localhost)
	by developer.yandex.ru (8.13.3/8.13.1/Submit) id j4J0PXQc052037;
	Thu, 19 May 2005 04:25:33 +0400 (MSD)
	(envelope-from tejblum)
Message-Id: <200505190025.j4J0PXQc052037@developer.yandex.ru>
Date: Thu, 19 May 2005 04:25:33 +0400 (MSD)
From: Dmitrij Tejblum <tejblum@yandex-team.ru>
Reply-To: Dmitrij Tejblum <tejblum@yandex-team.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [patch] mountd does not ignore SIGPIPE
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         81230
>Category:       bin
>Synopsis:       [patch] mountd does not ignore SIGPIPE
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rodrigc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 19 00:30:08 GMT 2005
>Closed-Date:    Sat Dec 23 17:28:07 GMT 2006
>Last-Modified:  Sat Dec 23 17:28:07 GMT 2006
>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:
Responsible-Changed-From-To: freebsd-bugs->rodrigc 
Responsible-Changed-By: rodrigc 
Responsible-Changed-When: Tue May 23 06:22:45 UTC 2006 
Responsible-Changed-Why:  
Mine 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81230 
State-Changed-From-To: open->patched 
State-Changed-By: rodrigc 
State-Changed-When: Sat Nov 18 22:43:29 UTC 2006 
State-Changed-Why:  
Patch applied, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81230 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/81230: commit references a PR
Date: Sat, 18 Nov 2006 22:43:42 +0000 (UTC)

 rodrigc     2006-11-18 22:43:21 UTC
 
   FreeBSD src repository
 
   Modified files:
     usr.sbin/mountd      mountd.c 
   Log:
   Ignore SIGPIPE, instead of terminating process.
   
   PR:             81230
   Submitted by:   Dmitrij Tejblum <tejblum yandex-team ru>
   MFC after:      1 month
   
   Revision  Changes    Path
   1.91      +1 -0      src/usr.sbin/mountd/mountd.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/81230: commit references a PR
Date: Tue, 19 Dec 2006 01:18:08 +0000 (UTC)

 rodrigc     2006-12-19 01:17:58 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     usr.sbin/mountd      mountd.c 
   Log:
   MFC: 1.91
   
   Ignore SIGPIPE, instead of terminating process.
   
   PR:             81230
   Submitted by:   Dmitrij Tejblum <tejblum yandex-team ru>
   
   Revision  Changes    Path
   1.81.2.7  +1 -0      src/usr.sbin/mountd/mountd.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/81230: commit references a PR
Date: Sat, 23 Dec 2006 16:59:13 +0000 (UTC)

 rodrigc     2006-12-23 16:58:56 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6_2)
     usr.sbin/mountd      mountd.c 
   Log:
   MFC: 1.91
   
   Ignore SIGPIPE, instead of terminating process.
   
   PR:             81230
   Submitted by:   Dmitrij Tejblum <tejblum yandex-team ru>
   Approved by:    re (kensmith)
   
   Revision      Changes    Path
   1.81.2.6.2.1  +1 -0      src/usr.sbin/mountd/mountd.c
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: rodrigc 
State-Changed-When: Sat Dec 23 17:27:31 UTC 2006 
State-Changed-Why:  
Merged to RELENG_6 and RELENG_6_2. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=81230 
>Unformatted:
