Re: [PATCH v2 2/2] pidfs: ensure consistent ENOENT/ESRCH reporting

Oleg Nesterov
2025-04-11T15:29:21Z

On 04/11, Christian Brauner wrote:
>
> I'm verbose. I hope you can live with it:
>
> /*
> * While holding the pidfd waitqueue lock removing the task
> * linkage for the thread-group leader pid (PIDTYPE_TGID) isn't
> * possible. Thus, if there's still task linkage for PIDTYPE_PID
> * not having thread-group leader linkage for the pid means it
> * wasn't a thread-group leader in the first place.
> */
>
> :)

LGTM ;)

Oleg.