Changeset 50063 in vbox
- Timestamp:
- Jan 13, 2014 4:48:33 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r50051 r50063 2009 2009 | RTPROC_FLAGS_HIDDEN; /** @todo More flags from startup info? */ 2010 2010 2011 /* 2012 * Create the session process' environment block. 2013 */ 2014 RTENV hEnv = NIL_RTENV; 2015 if (RT_SUCCESS(rc)) 2016 { 2017 /** @todo At the moment a session process does not have the ability to use the 2018 * per-session environment variables itself, only the session's guest 2019 * processes do so. Implement that later, also needs tweaking of 2020 * VbglR3GuestCtrlSessionGetOpen(). */ 2021 rc = RTEnvClone(&hEnv, RTENV_DEFAULT); 2022 } 2023 2011 2024 #if 0 /* Pipe handling not needed (yet). */ 2012 2025 /* Setup pipes. */ … … 2036 2049 2037 2050 if (RT_SUCCESS(rc)) 2038 { 2039 /* Fork the thing. */ 2040 /** @todo Do we need a custom environment block? */ 2041 rc = RTProcCreateEx(pszExeName, papszArgs, RTENV_DEFAULT, uProcFlags, 2051 rc = RTProcCreateEx(pszExeName, papszArgs, hEnv, uProcFlags, 2042 2052 pSession->StdIn.phChild, pSession->StdOut.phChild, pSession->StdErr.phChild, 2043 2053 !fAnonymous ? pSession->StartupInfo.szUser : NULL, 2044 2054 !fAnonymous ? pSession->StartupInfo.szPassword : NULL, 2045 2055 &pSession->hProcess); 2046 }2047 2056 2048 2057 if (RT_SUCCESS(rc)) … … 2074 2083 hStdOutAndErr.enmType = RTHANDLETYPE_FILE; 2075 2084 2076 /** @todo Set custom/cloned guest session environment block. */ 2077 rc = RTProcCreateEx(pszExeName, papszArgs, RTENV_DEFAULT, uProcFlags, 2085 rc = RTProcCreateEx(pszExeName, papszArgs, hEnv, uProcFlags, 2078 2086 &hStdIn, &hStdOutAndErr, &hStdOutAndErr, 2079 2087 !fAnonymous ? pSessionThread->StartupInfo.szUser : NULL, … … 2087 2095 } 2088 2096 #endif 2097 if (hEnv != NIL_RTENV) 2098 RTEnvDestroy(hEnv); 2089 2099 } 2090 2100 }
Note:
See TracChangeset
for help on using the changeset viewer.

