[PATCH v2 21/27] selftests/landlock: Use _exit() in the named_pipe_ioctl child

From: Günther Noack

Date: Wed Nov 04 2026 - 18:20:29 EST


In the named_pipe_ioctl test, use _exit(2) like in other places.

Signed-off-by: Günther Noack <gnoack3000@xxxxxxxxx>
---
tools/testing/selftests/landlock/fs_test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/landlock/fs_test.c b/tools/testing/selftests/landlock/fs_test.c
index 1e94a3171e02..78b2bf06b6ee 100644
--- a/tools/testing/selftests/landlock/fs_test.c
+++ b/tools/testing/selftests/landlock/fs_test.c
@@ -4272,7 +4272,7 @@ TEST_F_FORK(layout1, named_pipe_ioctl)
if (child_pid == 0) {
fd = open(path, O_WRONLY);
close(fd);
- exit(0);
+ _exit(0);
}

fd = open(path, O_RDONLY);

--
2.56.0