Artifacts Associated With Ticket d2b144e4612c10f8
Ticket change [cd0c8b7871] (rid 142005) by anonymous on 2015-06-05 23:21:40:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi, there is no easy way to pass customized environment variables to a child process. When tcl use "exec" or "open" with pipes, all the environment variables are inherited to the child process. But it's not possible to set in advance environment variables different from the parent process and exclusive for that child process. For example there is no -env option in the "exec" command to pass a list of customized environment variables for the child process. It seems that the only way is to set temporarily environment variables in ::env, spawn a new child process, and then restore that changed environment variables to their original value.
- foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "1c4b6cdb98c9dfc4d1e74018f3f4efa00ad217e2"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "- New Builtin Commands"
- title initialized to:
It's not possible to pass customized environment variables to child process
- type initialized to: "Bug"
Ticket change [a2e88b26bc] (rid 142006) by ferrieux on 2015-06-06 14:01:12:
- icomment:
The only circumstance where that could matter, is multiple threads spawning children in an uncoordinated way; this is easily solvable by proper synchronization (e.g by dedicating a thread to the job and thread::send'ing it spawn orders). So, doing what you suggest would significantly clutter the API for a very very tiny corner case with an efficient current solution.
- login: "ferrieux"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Pending"
- icomment:
Ticket change [7fff29dacf] (rid 143486) by jan.nijtmans on 2015-10-09 12:47:02:
- closedate changed to: "2457305.03267171"
- closer changed to: "jan.nijtmans"
- login: "jan.nijtmans"
- mimetype: "text/plain"
- status changed to: "Closed"