summaryrefslogtreecommitdiff
path: root/src/libsystemd-network/test-ndisc-rs.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-11-12 02:03:22 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-11-12 02:03:22 +0900
commit3e29b8895a910314aaea4a251fc959cde427c241 (patch)
treea7dc0f4d8c3ee6f0ed3c4e78d21e66f560145802 /src/libsystemd-network/test-ndisc-rs.c
parentf2a500eb414dcd0d6e1eef70f2303c689b5d788d (diff)
downloadsystemd-3e29b8895a910314aaea4a251fc959cde427c241.tar.gz
libsystemd-network: set SOCK_CLOEXEC and SOCK_NONBLOCK
Diffstat (limited to 'src/libsystemd-network/test-ndisc-rs.c')
-rw-r--r--src/libsystemd-network/test-ndisc-rs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-ndisc-rs.c b/src/libsystemd-network/test-ndisc-rs.c
index 70f289bcb5..caf94d10f8 100644
--- a/src/libsystemd-network/test-ndisc-rs.c
+++ b/src/libsystemd-network/test-ndisc-rs.c
@@ -176,7 +176,7 @@ static int test_rs_hangcheck(sd_event_source *s, uint64_t usec,
int icmp6_bind_router_solicitation(int index) {
assert_se(index == 42);
- if (socketpair(AF_UNIX, SOCK_DGRAM, 0, test_fd) < 0)
+ if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0, test_fd) < 0)
return -errno;
return test_fd[0];