summaryrefslogtreecommitdiffstats
path: root/if-linux.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2009-01-27 19:40:05 +0000
committerRoy Marples <roy@marples.name>2009-01-27 19:40:05 +0000
commit146d8134bdcbb0d21b51f0da2d1b5a7ce30dbf07 (patch)
tree68dbed70f3ce1ef4da43f36fea741b6699ae0f06 /if-linux.c
parentfa344ba2b1dcf002f348b7fa69ef422585b4b438 (diff)
downloaddhcpcd-146d8134bdcbb0d21b51f0da2d1b5a7ce30dbf07.tar.xz
Fix compile on BSD.
Diffstat (limited to 'if-linux.c')
-rw-r--r--if-linux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/if-linux.c b/if-linux.c
index 71723e92..ce2f92e3 100644
--- a/if-linux.c
+++ b/if-linux.c
@@ -118,6 +118,7 @@ int
init_socket(void)
{
sock_fd = _open_link_socket(&sock_nl);
+ set_cloexec(sock_fd);
return sock_fd;
}