VirtualBox

Ignore:
Timestamp:
Apr 3, 2019 3:11:36 PM (6 years ago)
Author:
vboxsync
Message:

Main/HostDnsService: Some more cleanup and renaming.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/linux/HostDnsServiceLinux.cpp

    r77984 r77993  
    9090HostDnsServiceLinux::~HostDnsServiceLinux()
    9191{
    92     monitorThreadShutdown();
    93 }
    94 
    95 
    96 int HostDnsServiceLinux::monitorWorker(void)
    97 {
    98 
     92}
     93
     94HRESULT HostDnsServiceLinux::init(HostDnsMonitorProxy *pProxy)
     95{
     96    return HostDnsServiceResolvConf::init(pProxy, "/etc/resolv.conf");
     97}
     98
     99int HostDnsServiceLinux::monitorThreadShutdown(RTMSINTERVAL uTimeoutMs)
     100{
     101    RT_NOREF(uTimeoutMs);
     102
     103    send(g_DnsMonitorStop[0], "", 1, 0);
     104
     105    /** @todo r=andy Do we have to wait for something here? Can this fail? */
     106    return VINF_SUCCESS;
     107}
     108
     109int HostDnsServiceLinux::monitorThreadProc(void)
     110{
    99111    AutoNotify a;
    100112
     
    114126    polls[1].events = POLLIN;
    115127
    116     monitorThreadInitializationDone();
     128    onMonitorThreadInitDone();
    117129
    118130    int wd[2];
     
    229241}
    230242
    231 
    232 void HostDnsServiceLinux::monitorThreadShutdown()
    233 {
    234     send(g_DnsMonitorStop[0], "", 1, 0);
    235 }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette