VirtualBox

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

Main/HostDnsServiceDarwin: Added this pointer to shutdown callback and added the stopper source to the run loop, which was missing before.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/darwin/HostDnsServiceDarwin.cpp

    r77997 r77998  
    9797    CFRunLoopSourceContext sctx;
    9898    RT_ZERO(sctx);
     99    sctx.info    = this;
    99100    sctx.perform = HostDnsServiceDarwin::Data::performShutdownCallback;
     101
    100102    m->m_Stopper = CFRunLoopSourceCreate(kCFAllocatorDefault, 0, &sctx);
    101103    AssertReturn(m->m_Stopper, E_FAIL);
     104
     105    CFRunLoopAddSource(m->m_RunLoopRef, m->m_Stopper, kCFRunLoopCommonModes);
    102106
    103107    return updateInfo();
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