diff options
Diffstat (limited to 'tools/tap-test.c')
-rw-r--r-- | tools/tap-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tap-test.c b/tools/tap-test.c index 18fc00bc..314d6bce 100644 --- a/tools/tap-test.c +++ b/tools/tap-test.c @@ -43,7 +43,7 @@ static int inet_ifup(const char *ifname) struct ifreq ifr; int sk, err; - sk = socket(PF_INET, SOCK_DGRAM, 0); + sk = socket(PF_INET, SOCK_DGRAM | SOCK_CLOEXEC, 0); if (sk < 0) return -errno; |