[LTP] [PATCH 0/6] ioctl_pidfd testing suite

Andrea Cervesato andrea.cervesato@suse.com
Tue Jul 1 13:15:35 CEST 2025


On 6/27/25 12:14 PM, Cyril Hrubis wrote:
> I guess that we miss a test for the case where the processes are in the
> same pid namespace, e.g. process created by a plain old fork(). In that
> case calling the ioctl() before the the process was waited for would
> return the information I've mistakenly pointed out for the second test.

Sorry but I don't get this one. When we fork() a process and we check 
its exit code via ioctl(PIDFD_GET_INFO) __before__ the child has been 
reaped, we only need to check if mask is still having PIDFD_INFO_EXIT, 
because that's not available.The same for exit_code.

Am I missing something?

- Andrea




More information about the ltp mailing list