From owner-freebsd-hackers Sat Dec 11 23:37:59 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id CEC6414F5B for ; Sat, 11 Dec 1999 23:37:57 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id XAA70858; Sat, 11 Dec 1999 23:37:55 -0800 (PST) (envelope-from dillon) Date: Sat, 11 Dec 1999 23:37:55 -0800 (PST) From: Matthew Dillon Message-Id: <199912120737.XAA70858@apollo.backplane.com> To: David Gilbert Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Holding daemon filehandles. References: <14419.17934.412876.592234@trooper.velocet.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :Not that this is crucially important, but does nfsd really need to :hold open 4 filehandles? I can understand the one on it's binary, but :according to lsof, it holds open 3 copies of /dev/null (for stdin, :stdout and stderr). : :Dave. : :-- :============================================================================ :|David Gilbert, Velocet Communications. | Two things can only be | nfsd probably doesn't, but its a general safety feature when it daemonizes to prevent standard open()'s from using descriptors 0, 1, and 2. Don't worry, the file handles are simply 3 references to the same device and should not be taking up any space in the file table. -Matt Matthew Dillon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message