Re: generate a core file from a running process
From: AG (DONOTREPLY_at_ATcomcastDOTnet)
Date: Thu, 25 Sep 2003 21:27:28 -0400
"Patrick McGleenon" <firstname.lastname@example.org> wrote in message
> Anyone know if there's a program out there to generate a core file
> from a running process - without stopping it - on AIX (5.1)?
> I'm looking for something like gcore on Solaris, gdb 5.3 supports
> generate-core-file/gcore only on Solaris + linux.
> dbx doesn't appear to support it at all
How about something like this:
PrevSIGIOT = signal(SIGABT, SIG_DFL);
ChildPid = fork();
if (ChildPid == NULL)
waitpid(ChildPid, &Status, NULL);