Changeset 33854 in vbox
- Timestamp:
- Nov 8, 2010 3:20:57 PM (14 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 2 edited
-
VBoxService.cpp (modified) (2 diffs)
-
VBoxServiceControlExec.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r33595 r33854 509 509 RTR3Init(); 510 510 511 /*512 * Connect to the kernel part before daemonizing so we can fail and513 * complain if there is some kind of problem. We need to initialize the514 * guest lib *before* we do the pre-init just in case one of services needs515 * do to some initial stuff with it.516 */517 VBoxServiceVerbose(2, "Calling VbgR3Init()\n");518 int rc = VbglR3Init();519 if (RT_FAILURE(rc))520 return VBoxServiceError("VbglR3Init failed with rc=%Rrc.\n", rc);521 522 #ifdef RT_OS_WINDOWS523 /*524 * Check if we're the specially spawned VBoxService.exe process that525 * handles page fusion. This saves an extra executable.526 */527 if ( argc == 2528 && !strcmp(argv[1], "--pagefusionfork"))529 return VBoxServicePageSharingInitFork();530 #endif531 532 511 g_pszProgName = RTPathFilename(argv[0]); 533 512 513 int rc; 534 514 #ifdef VBOXSERVICE_TOOLBOX 535 515 if (argc > 1) … … 543 523 return rc; 544 524 } 525 #endif 526 527 /* 528 * Connect to the kernel part before daemonizing so we can fail and 529 * complain if there is some kind of problem. We need to initialize the 530 * guest lib *before* we do the pre-init just in case one of services needs 531 * do to some initial stuff with it. 532 */ 533 VBoxServiceVerbose(2, "Calling VbgR3Init()\n"); 534 rc = VbglR3Init(); 535 if (RT_FAILURE(rc)) 536 return VBoxServiceError("VbglR3Init failed with rc=%Rrc.\n", rc); 537 538 #ifdef RT_OS_WINDOWS 539 /* 540 * Check if we're the specially spawned VBoxService.exe process that 541 * handles page fusion. This saves an extra executable. 542 */ 543 if ( argc == 2 544 && !strcmp(argv[1], "--pagefusionfork")) 545 return VBoxServicePageSharingInitFork(); 545 546 #endif 546 547 -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlExec.cpp
r33808 r33854 1039 1039 rc = RTStrCopy(pszExpanded, cbExpanded, pszPath); 1040 1040 #endif 1041 #ifdef DEBUG 1042 VBoxServiceVerbose(3, "ControlExec: VBoxServiceControlExecMakeFullPath: %s -> %s\n", 1043 pszPath, pszExpanded); 1044 #endif 1041 1045 return rc; 1042 1046 } … … 1071 1075 1072 1076 rc = VBoxServiceControlExecMakeFullPath(pszExecResolved, pszResolved, cbResolved); 1077 #ifdef DEBUG 1078 VBoxServiceVerbose(3, "ControlExec: VBoxServiceControlExecResolveExecutable: %s -> %s\n", 1079 pszFileName, pszResolved); 1080 #endif 1073 1081 RTStrFree(pszExecResolved); 1074 1082 } … … 1120 1128 if (RTStrAPrintf(&pszNewArgs, "%s %s", pszFileName, szArgsExp)) 1121 1129 { 1130 #ifdef DEBUG 1131 VBoxServiceVerbose(3, "ControlExec: VBoxServiceControlExecPrepareArgv: %s\n", 1132 pszNewArgs); 1133 #endif 1122 1134 int iNumArgsIgnored; 1123 1135 rc = RTGetOptArgvFromString(ppapszArgv, &iNumArgsIgnored, … … 1549 1561 #ifdef DEBUG 1550 1562 VBoxServiceVerbose(3, "ControlExec: Start process szCmd=%s, uFlags=%u, szArgs=%s, szEnv=%s, szUser=%s, szPW=%s, uTimeout=%u\n", 1551 szCmd, uFlags, szArgs, szEnv, szUser, szPassword, uTimeLimitMS);1563 szCmd, uFlags, uNumArgs ? szArgs : "<None>", uNumEnvVars ? szEnv : "<None>", szUser, szPassword, uTimeLimitMS); 1552 1564 #endif 1553 1565 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.

