diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-12 21:05:27 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-12 21:05:27 +0100 |
commit | 79668628ba0e6f42ba2ff8d51f2fd3c33b0838ad (patch) | |
tree | 6b31e0ec5f768cecb870a5eacaf4f130aa04c09a | |
parent | dda4fbd59099f572471ebf12af225f3052faac6c (diff) | |
download | nldev-79668628ba0e6f42ba2ff8d51f2fd3c33b0838ad.tar.bz2 nldev-79668628ba0e6f42ba2ff8d51f2fd3c33b0838ad.tar.xz |
nldev: close netlink filhandle on exec
-rw-r--r-- | nldev.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |