Subject: Re: core dump filename format
To: Manuel Bouyer <bouyer@antioche.lip6.fr>
From: Simon Burge <simonb@netbsd.org>
List: tech-userlevel
Date: 09/08/1999 00:18:25
Manuel Bouyer wrote:

> [ Bcc'd to tech-kern, as although this is mostly a userlevel thing,
>   some changes affect the kernel ]
> 
> Hi,
> Following Bill Sommerfeld's idea of "core dump filename format", here is
> a more formal proposal:
> 
> I propose to add a per-process inherited attribute, which would define
> the name of the core file.
> I can see 3 usefull formats:
> %n: name (argv[0]) of the process

Would it be easier/cleaner/quicker to use p_comm from the proc
structure?  Looking through the stack for argv[0] would require
an MD function wouldn't it?

Simon.