From 79668628ba0e6f42ba2ff8d51f2fd3c33b0838ad Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 12 Mar 2015 21:05:27 +0100 Subject: nldev: close netlink filhandle on exec --- nldev.c | 1 + 1 file changed, 1 insertion(+) 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; } -- cgit v1.2.3