VirtualBox

Changeset 50063 in vbox


Ignore:
Timestamp:
Jan 13, 2014 4:48:33 PM (11 years ago)
Author:
vboxsync
Message:

VBoxService/VBoxServiceControlSession.cpp: Added a to-do.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp

    r50051 r50063  
    20092009                                    | RTPROC_FLAGS_HIDDEN; /** @todo More flags from startup info? */
    20102010
     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
    20112024#if 0 /* Pipe handling not needed (yet). */
    20122025                /* Setup pipes. */
     
    20362049
    20372050                        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,
    20422052                                                pSession->StdIn.phChild, pSession->StdOut.phChild, pSession->StdErr.phChild,
    20432053                                                !fAnonymous ? pSession->StartupInfo.szUser : NULL,
    20442054                                                !fAnonymous ? pSession->StartupInfo.szPassword : NULL,
    20452055                                                &pSession->hProcess);
    2046                         }
    20472056
    20482057                        if (RT_SUCCESS(rc))
     
    20742083                        hStdOutAndErr.enmType = RTHANDLETYPE_FILE;
    20752084
    2076                         /** @todo Set custom/cloned guest session environment block. */
    2077                         rc = RTProcCreateEx(pszExeName, papszArgs, RTENV_DEFAULT, uProcFlags,
     2085                        rc = RTProcCreateEx(pszExeName, papszArgs, hEnv, uProcFlags,
    20782086                                            &hStdIn, &hStdOutAndErr, &hStdOutAndErr,
    20792087                                            !fAnonymous ? pSessionThread->StartupInfo.szUser : NULL,
     
    20872095                }
    20882096#endif
     2097                if (hEnv != NIL_RTENV)
     2098                    RTEnvDestroy(hEnv);
    20892099            }
    20902100        }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette