[LTP] [PATCH 5/6] Add ioctl_pidfd03 test
Andrea Cervesato
andrea.cervesato@suse.com
Mon Jun 30 14:50:13 CEST 2025
Hi!
On 6/27/25 11:56 AM, Cyril Hrubis wrote:
> If I'm reading the kernel code correctly, we should get the same result
> even before the pid was waited for, so we may as well do this check
> twice, once before the WAITPID() and once after the WAITPID().
In this case, ESRCH is obtained only when info->mask == 0 __after__
child has been reaped.
If child has not completed, we obtain the same result of the
ioctl_pidfd02 check before waitpid().
- Andrea
More information about the ltp
mailing list