From: Lennart Poettering Date: Wed, 31 Jan 2024 12:22:33 +0000 (+0100) Subject: test-namespace: SOCK_CLOEXEC'ify all the things X-Git-Tag: v256-rc1~1001^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F31144%2Fhead;p=thirdparty%2Fsystemd.git test-namespace: SOCK_CLOEXEC'ify all the things --- diff --git a/src/test/test-namespace.c b/src/test/test-namespace.c index 130c870602f..65d08259d4d 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);