1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-02 09:47:03 +03:00

test-namespace: SOCK_CLOEXEC'ify all the things

(cherry picked from commit 4f6d671dd109b6631622691b1c8cd67d6e7e7cfd)
(cherry picked from commit b7866095dfe26f242f65acb8cbd80434e43caad1)
(cherry picked from commit 86a4f4daffaa26894d384259b366498a03de0842)
This commit is contained in:
Lennart Poettering 2024-01-31 13:22:33 +01:00 committed by Luca Boccassi
parent 36a843b8a6
commit e55453c9a0

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);