[PATCH v7] linux: use PIDFD_GET_INFO ioctl for pidfd_getpid() if available
Luca Boccassi
luca.boccassi@gmail.com
Wed Jan 28 15:39:41 GMT 2026
On Wed, 28 Jan 2026 at 15:33, Florian Weimer <fweimer@redhat.com> wrote:
>
> * Luca Boccassi:
>
> > Unfortunately it doesn't help with existing kernels though. Is there a
> > test macro that can be used to check for either/or?
>
> I've used
>
> if (errno != EREMOTE)
> TEST_COMPARE (errno, ESRCH);
>
> to cover two possible alternatives.
Makes sense, sent v8, thanks for the suggestion
More information about the Libc-alpha
mailing list