Re: [PATCH v3] selftests/pidfd: wait for POLLHUP before reading exit info
From: fujo
Date: Tue Oct 20 2026 - 15:49:01 EST
Hi Oleg,
> Confused... V3 still changes the 1st poll(&pfd, 1, 0) to use POLLHUP?
You are right, and I'm sorry for the noise. I fixed the source but
amended the commit without staging the fix, so the v3 patch still
carried the old hunk. That was my mistake and it wasted your time.
v4 no longer touches that poll at all; only the polls that are followed
by PIDFD_GET_INFO wait for POLLHUP (and check POLLHUP in revents). With
the corrected tree the tests pass ten consecutive runs.
Thanks for catching this,
fujo