I fixed it for myself by calling the execve with

extern char ** environ

from

unistd.h


Misi



2008/10/5 misi e <[EMAIL PROTECTED]>

> Hello,
>
>
> I found another problem with the fcgi server. The fcgi spawns a process for
> each request. Unfortunately the execve does not inherit all the environment
> variables. Therefore if for example the hello.wt is deployed at
>
> /mysite/hello.wt
>
> and the libraries are deployed at
>
> /mysys/lib
>
> if I would have an fcgi script (hello.fcgi) like
>
> #!/bin/sh
> export LD_LIBRARY_PATH=/mysys/lib
> /mysite/hello.wt
>
>
> then this will not be able to spawn the children for sessions, as the
> LD_LIBRARY_PATH is not inherited therefore the shared libraries will not be
> found!
>
> It would be wise to give the execve all the env of the parent.
>
> regards
> Misi
>
>
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to