This is the mail archive of the archer@sourceware.org mailing list for the Archer project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ptrace improvement: PTRACE_O_INHERIT


> However. With or without PTRACE_O_TRACEEXIT, the thread can't go away
> until ptracer does do_wait(WEXITED). And until it does do_wait() tkill()
> succeeds even if the tracee is dead/zombie.

That is true except in the case of MT exec (de_thread).  The other threads
live in the process at the time when another does exec will be immediately
reaped without the chance for the debugger to see its death report.  I
think it's even a race to happen to see the death reports for these.  I'm
not managing to see how the immediate reaping happens in the source just
now, though I remember clearly that this is what happens.


Thanks,
Roland


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]