Changeset 49235 in vbox for trunk/src/VBox/Main/src-server/linux/HostDnsServiceLinux.cpp
- Timestamp:
- Oct 22, 2013 6:56:03 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/linux/HostDnsServiceLinux.cpp
r49201 r49235 26 26 #include <iprt/thread.h> 27 27 28 #include "../HostDnsService.h"29 30 28 #include <errno.h> 31 29 #include <poll.h> … … 40 38 41 39 #include <string> 40 #include <vector> 41 #include "../HostDnsService.h" 42 42 43 43 44 static RTTHREAD g_DnsMonitoringThread; … … 102 103 103 104 105 HostDnsServiceLinux::~HostDnsServiceLinux() 106 { 107 send(g_DnsMonitorStop[0], "", 1, 0); 108 } 109 110 104 111 int HostDnsServiceLinux::hostMonitoringRoutine(RTTHREAD ThreadSelf, void *pvUser) 105 112 { … … 140 147 if (polls[0].revents & POLLIN) 141 148 { 142 RTCritSectEnter(&dns->::HostDnsService::m_hCritSect); 143 dns->update(); 144 RTCritSectLeave(&dns->::HostDnsService::m_hCritSect); 149 dns->readResolvConf(); 150 /* notifyAll() takes required locks */ 151 dns->notifyAll(); 152 145 153 polls[0].revents = 0; 146 154 … … 153 161 154 162 155 HRESULT HostDnsServiceLinux::init(const VirtualBox *aParent)163 HRESULT HostDnsServiceLinux::init(const char *aResolvConfFileName) 156 164 { 157 HRESULT hrc = HostDnsServiceResolvConf::init(a Parent);165 HRESULT hrc = HostDnsServiceResolvConf::init(aResolvConfFileName); 158 166 AssertComRCReturnRC(hrc); 159 167 … … 169 177 return S_OK; 170 178 } 171 172 173 void HostDnsServiceLinux::stop()174 {175 send(g_DnsMonitorStop[0], "", 1, 0);176 }
Note:
See TracChangeset
for help on using the changeset viewer.