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/16, Roland McGrath wrote:
>
> > Even tgkill() can't 100% protect against PID reuse, but I agree it is better.
>
> If the process-wide PID (tgid) is not reused
> ...
> then tgkill does protect completely against TID reuse.

How? sooner or later the process which creates/destroys a thread
in a loop will reuse some pid number.

But probably you meant that tgkill() guarantees it is still in
the same process, in this case I agree.

Oleg.


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