diff options
| author | 2009-09-26 01:43:09 +0000 | |
|---|---|---|
| committer | 2009-09-26 01:43:09 +0000 | |
| commit | 939cb0ba987f927f1ad900d45f98ba6d8e03e9d4 (patch) | |
| tree | f35510ff56e01ece2a0417c9a6fbad17fb7acfee /src/dns.cpp | |
| parent | Move configuration filename specification to start script, to reduce hardcode... (diff) | |
Clean up SocketEngine interface to allow edge-triggered I/O and sockets that do not force readability.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11760 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/dns.cpp')
| -rw-r--r-- | src/dns.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp index 94a01e64c..3356700ef 100644 --- a/src/dns.cpp +++ b/src/dns.cpp @@ -369,7 +369,7 @@ void DNS::Rehash() /* Hook the descriptor into the socket engine */ if (ServerInstance && ServerInstance->SE) { - if (!ServerInstance->SE->AddFd(this)) + if (!ServerInstance->SE->AddFd(this, FD_WANT_POLL_READ | FD_WANT_NO_WRITE)) { ServerInstance->Logs->Log("RESOLVER",DEFAULT,"Internal error starting DNS - hostnames will NOT resolve."); ServerInstance->SE->Shutdown(this, 2); |
