Subject: Re: core file name format: diffs
To: None <tech-kern@netbsd.org>
From: enami tsugutomo <enami@but-b.or.jp>
List: tech-kern
Date: 09/25/1999 14:56:51
der Mouse  <mouse@Rodents.Montreal.QC.CA> writes:

> > So I propose to move all (p->p_limit->p_refcnt--) to after the limcopy()
> > call, and change it to:
> >         if (--p->p_limit->p_refcnt == 0)
> >             pool_put(&plimit_pool, p->p_limit);
> 
> Um, you need to not just pool_put, but also free
> p->p_limit->pl_corename if it's not defcorename.  Since this makes two
> places that do basically the same thing (free a p_limit if its refcount
> is zero) perhaps a routine to do this should be created?

I guess the routine is limfree().  kern_exit.c also should use it...

enami.