diff options
| author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-11-20 16:42:04 -0300 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2025-11-21 13:13:26 -0300 |
| commit | 907089ba369408fc7c2fbaada218a05df605d64a (patch) | |
| tree | 157d761b4ac8afa821c227668aa10367eb531122 | |
| parent | 52524467afc2398140c65a8ca4c937a085e592b5 (diff) | |
linux: Handle EINVAL as unsupported on tst-pidfd_getinfo
Some kernels returns EINVAL for ioctl (PIDFD_GET_INFO) on pidfd
descriptors.
Checked on aarch64-linux-gnu with Linux 6.12.
Reviewed-by: Florian Weimer <fweimer@redhat.com>
| -rw-r--r-- | sysdeps/unix/sysv/linux/tst-pidfd_getinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-pidfd_getinfo.c b/sysdeps/unix/sysv/linux/tst-pidfd_getinfo.c index 948a7cdb6b..f4a77816b4 100644 --- a/sysdeps/unix/sysv/linux/tst-pidfd_getinfo.c +++ b/sysdeps/unix/sysv/linux/tst-pidfd_getinfo.c @@ -46,7 +46,7 @@ do_test (void) }; if (ioctl (pidfd, PIDFD_GET_INFO, &info) != 0) { - if (errno == ENOTTY) + if (errno == ENOTTY || errno == EINVAL) FAIL_UNSUPPORTED ("kernel does not support PIDFD_GET_INFO"); else FAIL_EXIT1 ("ioctl (PIDFD_GET_INFO) failed: %m"); |
