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


On 02/15, Roland McGrath wrote:
>
> > GDB also never trusts the found threads list, it does tkill (TID, 0) to verify
> > if any TID is still alive.
>
> Btw, it should use tgkill to avoid false-positive corner cases of PID reuse.

Even tgkill() can't 100% protect against PID reuse, but I agree it is better.

But I failed to understand why gdb needs tkill/tgkill currently. A thread
can't go away silently? This also means its pid can't be reused.

Confused.

Oleg.


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