Changeset 49268 in vbox for trunk/src/VBox/Main/src-server/linux
- Timestamp:
- Oct 24, 2013 8:03:17 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/linux/HostDnsServiceLinux.cpp
r49235 r49268 17 17 18 18 #include <iprt/assert.h> 19 #include <iprt/err.h> 19 #include <iprt/err.h> 20 20 #include <iprt/initterm.h> 21 21 #include <iprt/file.h> … … 57 57 58 58 int fileDescriptor() const {return fd;} 59 59 60 60 protected: 61 61 int fd; … … 111 111 int HostDnsServiceLinux::hostMonitoringRoutine(RTTHREAD ThreadSelf, void *pvUser) 112 112 { 113 NOREF(ThreadSelf); 113 114 AutoNotify a; 114 115 HostDnsServiceLinux *dns = static_cast<HostDnsServiceLinux *>(pvUser); … … 120 121 FileDescriptor stopper0(g_DnsMonitorStop[0]); 121 122 FileDescriptor stopper1(g_DnsMonitorStop[1]); 122 123 123 124 pollfd polls[2]; 124 125 RT_ZERO(polls); … … 137 138 if (rc == -1) 138 139 continue; 139 140 AssertMsgReturn( ((polls[0].revents & (POLLERR|POLLNVAL)) == 0) 141 && ((polls[1].revents & (POLLERR|POLLNVAL)) == 0), 140 141 AssertMsgReturn( ((polls[0].revents & (POLLERR|POLLNVAL)) == 0) 142 && ((polls[1].revents & (POLLERR|POLLNVAL)) == 0), 142 143 ("Debug Me"), VERR_INTERNAL_ERROR); 143 144 144 145 if (polls[1].revents & POLLIN) 145 146 return VINF_SUCCESS; /* time to shutdown */ 146 147 147 148 if (polls[0].revents & POLLIN) 148 149 {
Note:
See TracChangeset
for help on using the changeset viewer.