l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2004 Feb 16 12:21

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] core files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] core files

On Sun, Feb 15, 2004 at 05:38:47PM -0800, Peter Jay Salzman wrote:
> I've noticed some core files have a number appended to them, like:
>    core.2342
> The number is most likely a pid, but I'm curious how the core file got
> named this way.  Is there a libc function that sets the name of a
> possible future core file?
> Do core files automatically get a pid appended to their name when a
> program forks?

On 2.6 kernels, check out /proc/sys/kernel/core_pattern and
/proc/sys/kernel/core_uses_pid .  You can set a naming pattern for core
dumps and control whether the PID gets appended to the end of core file
names or not.  I believe these features were added sometime during the
2.5 development so I'm not sure if/when they were backported to 2.4.
There's documentation about them in Documentation/sysctl/kernel.txt
under your kernel source tree.  I also seem to recall reading somewhere
that the PID gets appended automatically for multi-threaded



* Matt Roper <matt@mattrope.com>                *
* http://www.mattrope.com                       *
* PGP Key: http://www.mattrope.com/mattrope.asc *
vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.