From owner-freebsd-current@FreeBSD.ORG Sat Dec 27 12:17:09 2003 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 F2AB316A4CE for ; Sat, 27 Dec 2003 12:17:08 -0800 (PST) Received: from obh.snafu.de (obh.snafu.de [213.73.92.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9028C43D46 for ; Sat, 27 Dec 2003 12:17:07 -0800 (PST) (envelope-from ob@gruft.de) Received: from ob by obh.snafu.de with local (Exim 3.36 #1) id 1AaKry-0009VE-00 for freebsd-current@freebsd.org; Sat, 27 Dec 2003 21:17:06 +0100 Date: Sat, 27 Dec 2003 21:17:06 +0100 From: Oliver Brandmueller To: freebsd-current@freebsd.org Message-ID: <20031227201706.GF86308@e-Gitt.NET> Mail-Followup-To: freebsd-current@freebsd.org References: <20031227123148.GB77531@e-Gitt.NET> <200312271253.aa04019@salmon.maths.tcd.ie> <20031227132932.GA86308@e-Gitt.NET> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.5.1i Sender: Oliver Brandmueller Subject: Re: file descriptor leak in 5.2-RC 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: Sat, 27 Dec 2003 20:17:09 -0000 Hi. On Sat, Dec 27, 2003 at 02:01:21PM +0000, Bjoern A. Zeeb wrote: > when daemonizing you open /dev/null and dup2 it to 0,1,2 > to detach from stdin,out,err. Yes, of course. But they still should not keep lying around when going to single user and should be visible in fstat / lsof, if everything were OK and this were just an application problem. I'm currently checking if I can find something in older sources of /dev/null - although I would appreciate help in diggin' around here, I'm just an admin, not a programmer. And by far no kernel hacker. - Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! |