From: Arjen M. <Arj...@de...> - 2017-10-12 08:29:36
|
Hi Frédéric, > -----Original Message----- > From: Frédéric [mailto:ufo...@gm...] > Sent: Thursday, October 12, 2017 10:24 AM > > There is no need to worry about such interference: the environment is > > private to the process and is inherited from whatever process started it. > > Is this true on all OS (Windows, OSX and Linux)? > If so, I just call putenv at the beginning of my program, that's simple. > I know it is true for Linux and OSX (as UNIX descendants). On Windows the situation may be less straightforward if you include system-defined environment variables, but I have been forced to restart some program that would start other programs more than once, because the changed environment was not automatically copied into the child processes. If somebody else has evidence to the converse, I will stand corrected :). Regards, Arjen DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. |