Changeset 50051 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jan 10, 2014 1:23:37 PM (11 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r49531 r50051 5 5 6 6 /* 7 * Copyright (C) 2007-201 2Oracle Corporation7 * Copyright (C) 2007-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 42 42 #include <iprt/buildconfig.h> 43 43 #include <iprt/initterm.h> 44 #include <iprt/file.h> 44 45 #ifdef DEBUG 45 46 # include <iprt/memtracker.h> … … 231 232 char szError[RTPATH_MAX + 128] = ""; 232 233 int rc = RTLogCreateEx(&g_pLoggerRelease, fFlags, "all", 233 "VBOXSERVICE_RELEASE_LOG", RT_ELEMENTS(s_apszGroups), s_apszGroups, 234 #ifdef DEBUG 235 "VBOXSERVICE_LOG", 236 #else 237 "VBOXSERVICE_RELEASE_LOG", 238 #endif 239 RT_ELEMENTS(s_apszGroups), s_apszGroups, 234 240 RTLOGDEST_STDOUT, 235 241 VBoxServiceLogHeaderFooter, g_cHistory, g_uHistoryFileSize, g_uHistoryFileTime, … … 754 760 { 755 761 RTEXITCODE rcExit; 756 bool fUserSession = false;757 762 758 763 /* … … 779 784 #endif 780 785 786 bool fUserSession = false; 781 787 #ifdef VBOX_WITH_GUEST_CONTROL 782 788 /* … … 796 802 */ 797 803 if (fUserSession) 798 {799 VBoxServiceVerbose(2, "Calling VbgR3InitUser()\n");800 804 rc = VbglR3InitUser(); 801 }802 805 else 803 {804 VBoxServiceVerbose(2, "Calling VbgR3Init()\n");805 806 rc = VbglR3Init(); 806 } 807 807 808 if (RT_FAILURE(rc)) 808 809 { 809 810 if (rc == VERR_ACCESS_DENIED) 810 811 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Insufficient privileges to start %s! Please start with Administrator/root privileges!\n", 811 812 g_pszProgName); 812 813 return RTMsgErrorExit(RTEXITCODE_FAILURE, "VbglR3Init failed with rc=%Rrc\n", rc); 813 814 } … … 997 998 rc = VBoxServiceLogCreate(strlen(g_szLogFile) ? g_szLogFile : NULL); 998 999 if (RT_FAILURE(rc)) 999 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to create release log (%s, %Rrc)",1000 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Failed to create release log \"%s\", rc=%Rrc\n", 1000 1001 strlen(g_szLogFile) ? g_szLogFile : "<None>", rc); 1001 1002 -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r49349 r50051 6 6 7 7 /* 8 * Copyright (C) 2013 Oracle Corporation8 * Copyright (C) 2013-2014 Oracle Corporation 9 9 * 10 10 * This file is part of VirtualBox Open Source Edition (OSE), as … … 1259 1259 if (!fProcessAlive) 1260 1260 { 1261 VBoxServiceVerbose(2, "Guest session ID=%RU32 processterminated with rc=%Rrc, reason=%ld, status=%d\n",1261 VBoxServiceVerbose(2, "Guest session process (ID=%RU32) terminated with rc=%Rrc, reason=%ld, status=%d\n", 1262 1262 uSessionID, rcWait, 1263 1263 ProcessStatus.enmReason, ProcessStatus.iStatus); 1264 if (ProcessStatus.iStatus == RTEXITCODE_INIT) 1265 { 1266 VBoxServiceError("Guest session process (ID=%RU32) failed to initialize. Here some hints:\n", 1267 uSessionID); 1268 VBoxServiceError("- Is logging enabled and the output directory is read-only by the guest session user?\n"); 1269 /** @todo Add more here. */ 1270 } 1264 1271 } 1265 1272 } … … 2351 2358 rc = GstCntlSessionInit(&g_Session, uSessionFlags); 2352 2359 if (RT_FAILURE(rc)) 2353 return RTMsgErrorExit(RTEXITCODE_ FAILURE, "Failed to initialize session object, rc=%Rrc\n", rc);2360 return RTMsgErrorExit(RTEXITCODE_INIT, "Failed to initialize session object, rc=%Rrc\n", rc); 2354 2361 2355 2362 rc = VBoxServiceLogCreate(strlen(g_szLogFile) ? g_szLogFile : NULL); 2356 2363 if (RT_FAILURE(rc)) 2357 return RTMsgErrorExit(RTEXITCODE_ FAILURE, "Failed to create release log (%s, %Rrc)",2364 return RTMsgErrorExit(RTEXITCODE_INIT, "Failed to create log file \"%s\", rc=%Rrc\n", 2358 2365 strlen(g_szLogFile) ? g_szLogFile : "<None>", rc); 2359 2366
Note:
See TracChangeset
for help on using the changeset viewer.