[lkml]   [2011]   [Jul]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Linux child process does not core dump
Hi Srinivas,

On Thu, Jul 28, 2011 at 3:46 PM, Srinivas Nayak
<> wrote:
> In my program, I fork() to get a child process.
> Because of some problem, child process terminates by a segmentation fault.
> Parent process is still running.
> I have compiled my code with -g option.
> I have done: ulimit -c unlimited.
> I am not getting core dump of the child process.
> How can I get the core dump of child process?

You can call setrlimit(2) from the child process to get core dump.

Best Regard,
Maxin B. John

 \ /
  Last update: 2011-07-28 15:47    [W:0.034 / U:1.656 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site