mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-24 12:04:38 +00:00
Extend closing the netlink in TCP handler processes to *BSD.
This may not be necessary, as the socket doesn't revieve broadcasts, but it can't hurt.
This commit is contained in:
1 file changed
+4
@@ -2179,6 +2179,8 @@ static void do_tcp_connection(struct listener *listener, time_t now, int slot)
|
||||
forever awaiting the result. To avoid this
|
||||
close the netlink socket in the child. */
|
||||
close(daemon->netlinkfd);
|
||||
#elif defined(HAVE_BSD_NETWORK)
|
||||
close(daemon->routefd);
|
||||
#endif
|
||||
|
||||
/* Close inherited listening sockets in the child process.
|
||||
@@ -2316,6 +2318,8 @@ int swap_to_tcp(struct frec *forward, time_t now, int status, struct dns_header
|
||||
forever awaiting the result. To avoid this
|
||||
close the netlink socket in the child. */
|
||||
close(daemon->netlinkfd);
|
||||
#elif defined(HAVE_BSD_NETWORK)
|
||||
close(daemon->routefd);
|
||||
#endif
|
||||
|
||||
/* Close inherited listening sockets in the child process.
|
||||
|
||||
Reference in new issue
Block a user