[RFA] Checkpoint: wait the defunct process when delete it

Michael Snyder msnyder@vmware.com
Tue May 11 22:28:00 GMT 2010


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?


Hui,

Here's a small change that saves the parent PTID.

Can you combine this with your change, to make sure that
waitpid is called by the correct process?

Good luck,
Michael



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fork.txt
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20100511/7e0938eb/attachment.txt>


More information about the Gdb-patches mailing list