carb::launcher::fLaunchFlagNoInheritEnv

Defined in carb/launcher/ILauncher.h

constexpr LauncherFlags carb::launcher::fLaunchFlagNoInheritEnv = 0x00000010

Flag to indicate that the calling process’s environment should not be inherited by the child process in addition to the new environment variables specified in the launch descriptor.

When no environment block is given in the descriptor, the default behavior is for the child process to inherit the parent’s (ie: this calling process) environment block. Similarly for when a non-empty environment block is specified in the launch descriptor - the environment block of the calling process will be prepended to the environment variables given in the launch descriptor. However, when this flag is used, that will indicate that the new child process should only get the environment block that is explicitly given in the launch descriptor.