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