Changeset 92987 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- Dec 16, 2021 3:50:22 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 148967
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r92707 r92987 1625 1625 1626 1626 uint32_t uSessionStatus = GUEST_SESSION_NOTIFYTYPE_UNDEFINED; 1627 uint32_t uSessionRc = VINF_SUCCESS; /** uint32_t vs. int. */1627 int32_t iSessionResult = VINF_SUCCESS; 1628 1628 1629 1629 if (fProcessAlive) … … 1650 1650 case RTPROCEXITREASON_NORMAL: 1651 1651 uSessionStatus = GUEST_SESSION_NOTIFYTYPE_TEN; 1652 iSessionResult = ProcessStatus.iStatus; /* Report back the session's exit code. */ 1652 1653 break; 1653 1654 1654 1655 case RTPROCEXITREASON_ABEND: 1655 1656 uSessionStatus = GUEST_SESSION_NOTIFYTYPE_TEA; 1657 /* iSessionResult is undefined (0). */ 1656 1658 break; 1657 1659 1658 1660 case RTPROCEXITREASON_SIGNAL: 1659 1661 uSessionStatus = GUEST_SESSION_NOTIFYTYPE_TES; 1662 iSessionResult = ProcessStatus.iStatus; /* Report back the signal number. */ 1660 1663 break; 1661 1664 … … 1676 1679 1677 1680 /* Report final status, regardless if we failed to wait above, so that the host knows what's going on. */ 1678 VGSvcVerbose(3, "Reporting final status % RU32 of session ID=%RU32\n", uSessionStatus, idSession);1681 VGSvcVerbose(3, "Reporting final status %#x %RU32 of session ID=%RU32\n", uSessionStatus, idSession); 1679 1682 Assert(uSessionStatus != GUEST_SESSION_NOTIFYTYPE_UNDEFINED); 1680 1683 1681 1684 VBGLR3GUESTCTRLCMDCTX ctx = { idClient, VBOX_GUESTCTRL_CONTEXTID_MAKE_SESSION(idSession), 1682 1685 0 /* uProtocol, unused */, 0 /* uNumParms, unused */ }; 1683 rc2 = VbglR3GuestCtrlSessionNotify(&ctx, uSessionStatus, uSessionRc);1686 rc2 = VbglR3GuestCtrlSessionNotify(&ctx, uSessionStatus, iSessionResult); 1684 1687 if (RT_FAILURE(rc2)) 1685 1688 VGSvcError("Reporting final status of session ID=%RU32 failed with rc=%Rrc\n", idSession, rc2); 1686 1689 1687 VGSvcVerbose(3, "Thread for session ID=%RU32 ended with sessionStatus=% RU32, sessionRc=%Rrc\n",1688 idSession, uSessionStatus, uSession Rc);1690 VGSvcVerbose(3, "Thread for session ID=%RU32 ended with sessionStatus=%#x (%RU32), sessionRc=%#x (%Rrc)\n", 1691 idSession, uSessionStatus, uSessionStatus, iSessionResult, iSessionResult); 1689 1692 1690 1693 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.