Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Dec 1999 23:37:55 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        David Gilbert <dgilbert@velocet.ca>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Holding daemon filehandles.
Message-ID:  <199912120737.XAA70858@apollo.backplane.com>
References:   <14419.17934.412876.592234@trooper.velocet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
: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 
					<dillon@backplane.com>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912120737.XAA70858>