VirtualBox

Ignore:
Timestamp:
Apr 27, 2010 2:42:14 PM (15 years ago)
Author:
vboxsync
Message:

Guest Control: Bugfixes.

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp

    r28800 r28833  
    147147                                           szUser, szPassword, uTimeLimitMS);
    148148    }
     149
     150    VBoxServiceVerbose(4, "Control: VBoxServiceControlHandleCmdStartProcess returned with %Rrc\n", rc);
    149151    return rc;
    150152}
     
    188190            AssertPtr(pData);
    189191
    190             uint32_t cbRead = _4K; /* Try reading 4k. */
    191             uint8_t *pBuf = (uint8_t*)RTMemAlloc(cbRead);
     192            uint32_t cbSize = _4K;
     193            uint32_t cbRead = cbSize;
     194            uint8_t *pBuf = (uint8_t*)RTMemAlloc(cbSize);
    192195            if (pBuf)
    193196            {
    194                 rc = VBoxServiceControlExecReadPipeBufferContent(&pData->stdOut, pBuf, cbRead, &cbRead);
     197                rc = VBoxServiceControlExecReadPipeBufferContent(&pData->stdOut, pBuf, cbSize, &cbRead);
    195198                if (RT_SUCCESS(rc))
    196199                {
     
    208211            rc = VERR_NOT_FOUND; /* PID not found! */
    209212    }
     213    VBoxServiceVerbose(4, "Control: VBoxServiceControlHandleCmdGetOutput returned with %Rrc\n", rc);
    210214    return rc;
    211215}
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp

    r28800 r28833  
    264264     * and that it's now OK to send input to the process.
    265265     */
    266     VBoxServiceVerbose(3, "Control: Process started: PID=%u, CID=%u\n",
    267                        pData->uPID, pThread->uContextID);
     266    VBoxServiceVerbose(3, "Control: Process started: PID=%u, CID=%u, User=%s, PW=%s\n",
     267                       pData->uPID, pThread->uContextID, pData->pszUser, pData->pszPassword);
    268268    rc = VbglR3GuestCtrlExecReportStatus(pThread->uClientID, pThread->uContextID,
    269269                                         pData->uPID, PROC_STS_STARTED, 0 /* u32Flags */,
     
    545545    }
    546546    else
     547    {
    547548        pbBuffer = NULL;
     549        *pcbToRead = 0;
     550    }
    548551    return VINF_SUCCESS;
    549552}
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