From 4f6d671dd109b6631622691b1c8cd67d6e7e7cfd Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 31 Jan 2024 13:22:33 +0100 Subject: test-namespace: SOCK_CLOEXEC'ify all the things --- src/test/test-namespace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/test-namespace.c b/src/test/test-namespace.c index 130c870602..65d08259d4 100644 --- a/src/test/test-namespace.c +++ b/src/test/test-namespace.c @@ -93,7 +93,7 @@ static void test_shareable_ns(unsigned long nsflag) { return; } - assert_se(socketpair(AF_UNIX, SOCK_DGRAM, 0, s) >= 0); + assert_se(socketpair(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0, s) >= 0); pid1 = fork(); assert_se(pid1 >= 0); -- cgit v1.2.3