httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <>
Subject Re: Hmmm.... spawning child in mod_rewrite.c
Date Wed, 20 May 1998 16:40:55 GMT
ap_call_exec() is a broken hack...  it has two functions really, one
is to build arguments and do suexec crap, and the other is to actually
call exec, given an argv and envp.  You only want the second function,
and it doesn't require a request_rec.

Of course the entire spawning API is completely broken in 1.3, and it's
increasingly obvious that we shouldn't try wedging more win32 kludges
into it... and should consider something more clean (like the api used
in NSPR for creating processes).


On Wed, 20 May 1998, Ralf S. Engelschall wrote:

> Hmmmm... because the spawned childs now have a "pinfo" I'd prefer to call
> ap_call_exec() in the child callback funtion.  But this functions needs an
> request_rec pointer. It's ok in the other modules like mod_cgi.c where one is
> available, but in mod_rewrite the RewriteMap program is run at the init hook
> (where only a server_rec is available).
> On the other hand using ap_open_piped_log doesn't work correctly (even when I
> enhance http_log.c's stuff for the stdout handle). I get the output of a
> RewriteMap program N times where N is really non-deterministic. Hmmm..
> Has anybody a hint how we should change the  rewritemap_program_child()
> function in mod_rewrite.c to let it use the pinfo stuff correctly?
>                                        Ralf S. Engelschall

View raw message