diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-16 13:52:10 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-16 13:52:10 +0000 |
commit | d7875763890e79ddcc1f4f105d7b896b0d5e5d83 (patch) | |
tree | 0c6cab5e7d7918731a0e43b983c486bd3ed16807 /include | |
parent | 5d18f26b6bfb7a575b50dc2e3ad909131b9f75da (diff) |
Fix socket leak properly this time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4405 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/dns.h | 2 | ||||
-rw-r--r-- | include/dnsqueue.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/dns.h b/include/dns.h index 9d293884a..ea02f03bb 100644 --- a/include/dns.h +++ b/include/dns.h @@ -216,6 +216,8 @@ void dns_deal_with_classes(int fd); */ bool dns_add_class(Resolver* r); +void dns_close(int fd); + #ifdef THREADED_DNS /** This is the handler function for multi-threaded DNS. * It cannot be a class member as pthread will not let us diff --git a/include/dnsqueue.h b/include/dnsqueue.h index 2b3217847..9c192357c 100644 --- a/include/dnsqueue.h +++ b/include/dnsqueue.h @@ -3,3 +3,4 @@ bool lookup_dns(const std::string &nick); void dns_poll(int fdcheck); +void ZapThisDns(int fd); |