From owner-freebsd-current@FreeBSD.ORG Mon May 16 20:31:44 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F24A616A4D0 for ; Mon, 16 May 2005 20:31:43 +0000 (GMT) Received: from mail.hamnpolare.net (manticore.shapeshifter.se [212.37.5.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43EC043D93 for ; Mon, 16 May 2005 20:31:42 +0000 (GMT) (envelope-from fli+freebsd-current@shapeshifter.se) Received: from localhost (localhost [127.0.0.1]) by mail.hamnpolare.net (Postfix) with ESMTP id 7F1871A6F0; Mon, 16 May 2005 22:31:37 +0200 (CEST) Received: from mail.hamnpolare.net ([127.0.0.1])port 10024) with ESMTP id 85601-02; Mon, 16 May 2005 22:31:36 +0200 (CEST) Received: from biocandy.shapeshifter.se (h99n2fls32o270.telia.com [217.210.25.99]) by mail.hamnpolare.net (Postfix) with ESMTP id A37A51A6D5; Mon, 16 May 2005 22:31:34 +0200 (CEST) Received: by biocandy.shapeshifter.se (Postfix, from userid 1001) id 6576E4280; Mon, 16 May 2005 22:31:34 +0200 (CEST) Date: Mon, 16 May 2005 22:31:34 +0200 From: Fredrik Lindberg To: Warner Losh Message-ID: <20050516203134.GA722@shapeshifter.se> References: <20050516170230.GB90847@shapeshifter.se> <20050516.133335.104054202.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050516.133335.104054202.imp@bsdimp.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: at example.com cc: freebsd-current@freebsd.org Subject: Re: Patch to make powerd(8) devd(8)-aware X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 May 2005 20:31:44 -0000 Nope, no reason. Just that the first thing that came to mind was sigprocmask (for some reason...) and it worked so I didn't give it more thought. Using signal(SIGPIPE, SIG_IGN); is probably a better solution. Fredrik Lindberg On Mon, May 16, 2005 at 01:33:35PM -0600, Warner Losh (imp@bsdimp.com) wrote: > Cool! > > > During the same time I also discovered a bug(?) in devd which causes it > > to terminate with a broken pipe if a client reading /var/run/devd.pipe > > disappears. Blocking SIGPIPE fixes this. > > Any reason that signal(SIGPIPE, SIG_IGN); wasn't used? > > Warner > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"