Re: [PATCH v2] selftests/pidfd: wait for POLLHUP before reading exit info

From: Oleg Nesterov

Date: Sun Oct 18 2026 - 15:27:58 EST


On 10/18, fujo wrote:
>
> You are right, thanks. That poll() is a liveness check, not an
> exit-info wait, so v3 keeps POLLIN there and only switches the polls
> that are followed by PIDFD_GET_INFO.

Great, I'll try to review V3 tomorrow.

> About the documentation: there is no in-tree KAPI file for this; the
> wording I referred to is the CLONE_AUTOREAP series description ("poll
> the child's exit via poll() and retrieve exit status via
> PIDFD_GET_INFO"). If you or Christian think a clarifying sentence
> belongs somewhere in the tree, I'm happy to send it, but I didn't want
> to guess where.

So it seems that (please correct me if I am wrong) you were confused by
some wording in a changelog or cover letter. If yes, too late to fix it.

But perhaps you can check (and possibly fix/improve) the man page(s) ?
Though, to be honest, I have no idea where all of this is documented...
But surely it must be documented somewhere, right ? ;)

Thanks,

Oleg.