Changeset 36745 in vbox
- Timestamp:
- Apr 20, 2011 10:08:26 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 71276
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r36338 r36745 588 588 * global mutex restrictions. 589 589 */ 590 # if 0 /** @todo r=bird: pending argv[0] bugfixing. */591 590 if (VBoxServiceToolboxMain(argc, argv, &rcExit)) 592 591 return rcExit; 593 # else594 if (argc > 1)595 if (VBoxServiceToolboxMain(argc - 1, &argv[1], &rcExit))596 return rcExit;597 # endif598 592 #endif 599 593 -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r36734 r36745 573 573 NULL /* pvData */, 0 /* cbData */); 574 574 VBoxServiceVerbose(3, "ControlExec: Process loop ended with rc=%Rrc\n", rc); 575 576 /* 577 * Dump stdout for debugging purposes. 578 * Only do that on *very* high verbosity (5+). 579 */ 580 if (g_cVerbosity >= 5) 581 { 582 uint8_t szBuf[_64K]; 583 uint32_t cbOffset = 0; 584 uint32_t cbRead, cbLeft; 585 while (RT_SUCCESS( VBoxServicePipeBufPeek(&pData->stdOut, szBuf, sizeof(szBuf), 586 cbOffset, &cbRead, &cbLeft)) 587 && cbRead) 588 { 589 VBoxServiceVerbose(5, "[%u]: %s\n", pData->uPID, szBuf); 590 cbOffset += cbRead; 591 if (!cbLeft) 592 break; 593 } 594 } 575 595 } 576 596 else … … 867 887 uProcFlags |= RTPROC_FLAGS_SERVICE; 868 888 #ifdef DEBUG 869 char *pszCmdLine; 870 rc = RTGetOptArgvToString(&pszCmdLine, papszArgsExp, 0 /* Default */); 871 AssertRC(rc); 872 VBoxServiceVerbose(3, "ControlExec: Executing: %s %s\n", 873 szExecExp, pszCmdLine); 874 RTStrFree(pszCmdLine); 889 VBoxServiceVerbose(3, "Command: %s\n", szExecExp); 890 for (size_t i = 0; papszArgsExp[i]; i++) 891 VBoxServiceVerbose(3, "\targv[%ld]: %s\n", i, papszArgsExp[i]); 875 892 #endif 876 893 /* Do normal execution. */
Note:
See TracChangeset
for help on using the changeset viewer.