Changeset 54671 in vbox for trunk/src/VBox
- Timestamp:
- Mar 6, 2015 4:55:29 PM (10 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/NetworkServiceRunner.cpp
r50213 r54671 117 117 return VINF_OBJECT_DESTROYED; 118 118 119 int rc = RTProcTerminate(m->mProcess);120 RTProcWait(m->mProcess, RTPROCWAIT_FLAGS_BLOCK, NULL);121 119 m->mProcess = NIL_RTPROCESS; 122 return rc;120 return VINF_SUCCESS; 123 121 } 124 122 -
trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp
r54504 r54671 519 519 ComEventTypeArray aVBoxEvents; 520 520 aVBoxEvents.push_back(VBoxEventType_OnHostNameResolutionConfigurationChange); 521 aVBoxEvents.push_back(VBoxEventType_OnNATNetworkStartStop); 521 522 rc = createNatListener(m_vboxListener, virtualbox, this, aVBoxEvents); 522 523 AssertRCReturn(rc, rc); … … 596 597 fetchAndUpdateDnsInfo(); 597 598 break; 599 600 case VBoxEventType_OnNATNetworkStartStop: 601 { 602 ComPtr <INATNetworkStartStopEvent> pStartStopEvent = pEvent; 603 BOOL fStart = TRUE; 604 HRESULT hrc = pStartStopEvent->COMGETTER(StartEvent)(&fStart); 605 if (!fStart) 606 shutdown(); 607 break; 608 } 598 609 } 599 610 -
trunk/src/VBox/NetworkServices/NAT/VBoxNetLwipNAT.cpp
r50494 r54671 389 389 break; 390 390 } 391 392 case VBoxEventType_OnNATNetworkStartStop: 393 { 394 ComPtr <INATNetworkStartStopEvent> pStartStopEvent = pEvent; 395 BOOL fStart = TRUE; 396 hrc = pStartStopEvent->COMGETTER(StartEvent)(&fStart); 397 if (!fStart) 398 shutdown(); 399 break; 400 } 391 401 } 392 402 return hrc; … … 784 794 ComEventTypeArray aVBoxEvents; 785 795 aVBoxEvents.push_back(VBoxEventType_OnHostNameResolutionConfigurationChange); 796 aVBoxEvents.push_back(VBoxEventType_OnNATNetworkStartStop); 786 797 rc = createNatListener(m_vboxListener, virtualbox, this, aVBoxEvents); 787 798 AssertRCReturn(rc, rc);
Note:
See TracChangeset
for help on using the changeset viewer.