Re: How to change name and location of "core dump files"

2010-08-27 Thread Parimal Das
Thanks a lot Mark. I will try this and post the code :) -Parimal Das On Thu, Aug 26, 2010 at 10:27 PM, Mark Ritchie wrote: > Hey! > > On 26/Aug/2010, at 7:29 AM, Parimal Das wrote: > > How i can change this core name to a more readable one, say > core.myApp. > > Also can i change the defaul

Re: How to change name and location of "core dump files"

2010-08-26 Thread Mark Ritchie
Hey! On 26/Aug/2010, at 7:29 AM, Parimal Das wrote: > How i can change this core name to a more readable one, say core.myApp. > Also can i change the default location of core generation?? Be careful as this is controlled system wide, not per process. ;-) And to be clear, I've not messed w

How to change name and location of "core dump files"

2010-08-26 Thread Parimal Das
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