Changeset 28833 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- Apr 27, 2010 2:42:14 PM (15 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControl.cpp
r28800 r28833 147 147 szUser, szPassword, uTimeLimitMS); 148 148 } 149 150 VBoxServiceVerbose(4, "Control: VBoxServiceControlHandleCmdStartProcess returned with %Rrc\n", rc); 149 151 return rc; 150 152 } … … 188 190 AssertPtr(pData); 189 191 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); 192 195 if (pBuf) 193 196 { 194 rc = VBoxServiceControlExecReadPipeBufferContent(&pData->stdOut, pBuf, cb Read, &cbRead);197 rc = VBoxServiceControlExecReadPipeBufferContent(&pData->stdOut, pBuf, cbSize, &cbRead); 195 198 if (RT_SUCCESS(rc)) 196 199 { … … 208 211 rc = VERR_NOT_FOUND; /* PID not found! */ 209 212 } 213 VBoxServiceVerbose(4, "Control: VBoxServiceControlHandleCmdGetOutput returned with %Rrc\n", rc); 210 214 return rc; 211 215 } -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r28800 r28833 264 264 * and that it's now OK to send input to the process. 265 265 */ 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); 268 268 rc = VbglR3GuestCtrlExecReportStatus(pThread->uClientID, pThread->uContextID, 269 269 pData->uPID, PROC_STS_STARTED, 0 /* u32Flags */, … … 545 545 } 546 546 else 547 { 547 548 pbBuffer = NULL; 549 *pcbToRead = 0; 550 } 548 551 return VINF_SUCCESS; 549 552 }
Note:
See TracChangeset
for help on using the changeset viewer.