This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Checkpoint: wait the defunct process when delete it
On Tuesday 11 May 2010 22:50:26, Michael Snyder wrote:
> Pedro Alves wrote:
> > On Sunday 09 May 2010 07:23:15, Hui Zhu wrote:
> >
> >> I found that when we delete the checkpoint process, it keep defunct.
> >> This is because the parent process is still running and didn't wait
> >> it.
> >> So I add a wait_ptid function after ptrace kill.
> >
> > You're assuming inferior_ptid is the parent process
> > of the checkpoint fork, but I don't believe that is always
> > true.
>
> Correct. Maybe we should add a "parent ID" field to the
> internal checkpoint table?
Sure.
--
Pedro Alves