Subject: Re: CVS commit: src/sys/kern
To: Jaromir Dolecek <jdolecek@netbsd.org>
From: Simon Burge <simonb@wasabisystems.com>
List: source-changes
Date: 02/15/2003 20:45:19
Jaromir Dolecek wrote:
> > Does this result in a leak if nfiles >= maxfiles now?
>
> No:
>
> > if (nfiles >= maxfiles) {
> > tablefull("file", "increase kern.maxfiles or MAXFILES");
> > + simple_unlock(&filelist_slock);
> > + pool_put(&file_pool, fp);
Gah, you're right. I totally missed the call to pool_put() when I
looked at the diff.
Simon.
--
Simon Burge <simonb@wasabisystems.com>
NetBSD Support and Service: http://www.wasabisystems.com/