]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-namespace: SOCK_CLOEXEC'ify all the things 31144/head
authorLennart Poettering <lennart@poettering.net>
Wed, 31 Jan 2024 12:22:33 +0000 (13:22 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 Jan 2024 12:22:33 +0000 (13:22 +0100)
src/test/test-namespace.c

index 130c870602f2cb2461c8110b0ad5fe68f505287f..65d08259d4d20b89cd4e978cce2a51d9616635cf 100644 (file)
@@ -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);