Subject: Re: coredump filename format (2)
To: Charles M. Hannum <email@example.com>
From: Manuel Bouyer <firstname.lastname@example.org>
Date: 09/10/1999 10:42:48
On Thu, Sep 09, 1999 at 01:36:44PM -0400, Charles M. Hannum wrote:
> > The corename value is keep in a char array of MAXPATHLEN, stored in
> > struct plimit (it's ideally suited for this because it's already
> > designed for inheritance, maybe it should just be renamed ?).
> This seems like a lot of memory to waste, especially since many users
> set limits in all their shells, and the default name is simply going
> to waste 1016 bytes. The goal is to *reduce* per-process overhead,
> not *increase* it.
I didn't catch this problem. This can easily be solved by changing pl_corename
to a char *, with memory allocated on demand when it's changed (it would
point to the defcorename otherwise). This should make things acceptable,
isn't it ?
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr