aboutsummaryrefslogtreecommitdiffstats
path: root/nldev.c
diff options
context:
space:
mode:
Diffstat (limited to 'nldev.c')
-rw-r--r--nldev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nldev.c b/nldev.c
index 9128c51..2a6c062 100644
--- a/nldev.c
+++ b/nldev.c
@@ -126,6 +126,7 @@ init_netlink_socket(void)
if (bind(fd, (void *)&nls, sizeof(nls)))
edie("bind");
+ fcntl(fd, F_SETFD, FD_CLOEXEC);
return fd;
}