test-namespace: SOCK_CLOEXEC'ify all the things

This commit is contained in:
Lennart Poettering
2024-01-31 13:22:33 +01:00
parent a5387637c2
commit 4f6d671dd1
+1 -1
View 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);