VirtualBox

Changeset 92617 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Nov 29, 2021 1:04:10 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148509
Message:

IPRT,RTProcCreatEx/posix: Run the login shell with a command dumping the environment to properly implement RTPROC_FLAGS_PROFILE. Tested on linux with sh, bash, zsh, ksh, ksh93, csh, tcsh, and tmux. bugref:10153

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/process.h

    r83661 r92617  
    206206#define RTPROC_FLAGS_SAME_CONTRACT          RT_BIT(3)
    207207/** Load user profile data when executing a process.
    208  * This redefines the meaning of RTENV_DEFAULT to the profile environment.
    209  * @remarks On non-windows platforms, the resulting environment maybe very
    210  *          different from what you see in your shell.  Among other reasons,
    211  *          we cannot run shell profile scripts which typically sets up the
    212  *          environment. */
     208 * This redefines the meaning of RTENV_DEFAULT to the profile environment.  See
     209 * also RTPROC_FLAGS_ONLY_BASIC_PROFILE */
    213210#define RTPROC_FLAGS_PROFILE                RT_BIT(4)
    214211/** Create process without a console window.
     
    235232 * a uint32_t containing the session ID, UINT32_MAX means any session. */
    236233#define RTPROC_FLAGS_DESIRED_SESSION_ID     RT_BIT(11)
     234/** This is a modifier to RTPROC_FLAGS_PROFILE on unix systems that makes it
     235 * skip trying to dump the environment of a login shell. */
     236#define RTPROC_FLAGS_ONLY_BASIC_PROFILE     RT_BIT(12)
    237237/** Valid flag mask. */
    238 #define RTPROC_FLAGS_VALID_MASK             UINT32_C(0xfff)
     238#define RTPROC_FLAGS_VALID_MASK             UINT32_C(0x1fff)
    239239/** @}  */
    240240
Note: See TracChangeset for help on using the changeset viewer.

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