httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Slemko <>
Subject Re: call_exec way bogus in win32
Date Sun, 22 Mar 1998 21:02:06 GMT
On Sun, 22 Mar 1998, Ben Laurie wrote:

> Marc Slemko wrote:
> > 
> > It tries to exec r->filename instead of argv0, which completely screws
> > mod_include and exec cmd, etc.  When I change that, I get the whole server
> > hanging.
> Ugh.
> > There is also some interplay here with the fact that the current code
> > changes directories, but a threaded server can't do that.
> Surely it can, but you have to do some locking, right? Presumably once
> you've fired off the subprocess you can change dir again?
> Some CGIs assume that directory change has occurred, so you can't blow
> that behaviour away without some careful thought.

You have to change for CGIs, but that is easy to wrap (although lame)
because you can chdir right before and chdir back after.

If you take a look at mod_include... well... you see a slightly different
use of chdir.

View raw message