[plt-scheme] set environment variables in subprocess

From: YC (yinso.chen at gmail.com)
Date: Wed Jan 13 20:33:10 EST 2010

On Wed, Jan 13, 2010 at 5:12 PM, Robby Findler
<robby at eecs.northwestern.edu>wrote:

> I guess you'd have to serialize the actual creation of the processes,
> or use yet another process to first set its own variables than exec
> the cgi program.
>
 I guess that will be the ways to go for now unless there are other
approaches.

Looking up execv it seems that it actually is a shorthand for execve, which
takes an additional char *const envp[]; which if I understand correctly,
will allow the explicit passing of environment variables instead of
inheriting.

Can subprocess optionally call execve?
Thanks,
yc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100113/1b631835/attachment.html>

Posted on the users mailing list.