<br>
<div class="gmail_quote">On Wed, Jan 13, 2010 at 4:00 PM, David Brown <span dir="ltr">&lt;<a href="mailto:plt@davidb.org">plt@davidb.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div></div>
<div class="h5">On Wed, Jan 13, 2010 at 03:07:59PM -0800, YC wrote:<br><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">is there a way to set the environment variables for the subprocess?  Looking<br>at <a href="http://docs.plt-scheme.org/reference/subprocess.html" target="_blank">http://docs.plt-scheme.org/reference/subprocess.html</a> it was not clear how<br>
this can be accomplished.<br></blockquote><br></div></div>The &#39;subprocess&#39; call calls execv on Unix/Linux, so you would have to<br>set it in the current process before the subprocess is created, which<br>you could do with &#39;putenv&#39;.<br>
</blockquote>
<div>Thanks Jay &amp; Dave.  setenv &amp; putenv modifies the current process&#39;s environment variable, so it sounds like if you want to spawn multiple subprocesses in multi-threaded fashion you will have some sort of contention if you are setting more than one environment variables. The example I am thinking about is spawning CGI processes, where the headers are written into the environment variables.</div>

<div> </div>
<div>Are there other ways or is my concern moot?  Thanks,</div>
<div>yc</div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div></div>