mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-29 00:01:12 +00:00
Linux: Terminate subprocess on late failure in tst-pidfd (bug 29485)
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
parent
af6e07dad7
commit
f82e05ebb2
@ -147,8 +147,11 @@ do_test (void)
|
||||
may be denied if the process doesn't have CAP_SYS_PTRACE or
|
||||
if a LSM security_ptrace_access_check denies access. */
|
||||
if (fd == -1 && errno == EPERM)
|
||||
FAIL_UNSUPPORTED ("don't have permission to use pidfd_getfd on pidfd, "
|
||||
"skipping test");
|
||||
{
|
||||
TEST_COMPARE (pidfd_send_signal (pidfd, SIGKILL, NULL, 0), 0);
|
||||
FAIL_UNSUPPORTED ("don't have permission to use pidfd_getfd on pidfd, "
|
||||
"skipping test");
|
||||
}
|
||||
TEST_VERIFY (fd > 0);
|
||||
|
||||
char *path = xasprintf ("/proc/%d/fd/%d", pid, remote_fd);
|
||||
|
Loading…
Reference in New Issue
Block a user