Re: [PATCH v1] io_uring/waitid: return -EAGAIN for a non-blocking pidfd

From: Jens Axboe

Date: Mon Oct 19 2026 - 17:06:12 EST



On Sat, 17 Oct 2026 22:58:24 -0400, Nickolai Zeldovich wrote:
> IORING_OP_WAITID on a pidfd opened with PIDFD_NONBLOCK completes at
> once with res 0 and an all-zero siginfo when the child has not changed
> state, although WNOHANG was not requested. waitid(2) with the same
> arguments fails with -EAGAIN. An application that submits the same
> request it would pass to waitid(2) and treats res 0 as "the child
> changed state" sees si_signo 0 and si_pid 0 instead.
>
> [...]

Applied, thanks!

[1/1] io_uring/waitid: return -EAGAIN for a non-blocking pidfd
commit: c82621eb2c9a00b514a459951609e04843d467bb

Best regards,
--
Jens Axboe