diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-01-31 13:22:33 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-01-31 13:22:33 +0100 |
commit | 4f6d671dd109b6631622691b1c8cd67d6e7e7cfd (patch) | |
tree | 8f53cc5e02e46ddb5f0d6b54bd95c3a2d51b1564 /src/test/test-namespace.c | |
parent | namespace: don't invoke loopback_setup() unless we allocate a CLONE_NEWNET na... (diff) | |
download | systemd-4f6d671dd109b6631622691b1c8cd67d6e7e7cfd.tar.xz systemd-4f6d671dd109b6631622691b1c8cd67d6e7e7cfd.zip |
test-namespace: SOCK_CLOEXEC'ify all the things
Diffstat (limited to '')
-rw-r--r-- | src/test/test-namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |