How to change name and location of "core dump files"
How to change name and location of "core dump files"
- Subject: How to change name and location of "core dump files"
- From: Parimal Das <email@hidden>
- Date: Thu, 26 Aug 2010 19:59:47 +0530
Hello
I need to enable 'core dumps' for my app.
I am doing this by using 'setrlimit()' function to change ulimit from
default(zero) to unlimited.
Now when i crash my app, it creates a dump file at /cores/core.xxx where
xxx is the PID.
How i can change this core name to a more readable one, say core.myApp.xxxx
Also can i change the default location of core generation??
The problem is, when there are multiple cores dumped in /cores, the only way
to identify the related core is by timestamp of file.
Now user either need to remember the time of crash or PID (process id) to
get the correct core from my app.
What can we do here? Or i am missing some very obvious point ?
Thanks in Advance
-Parimal Das
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden