perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Johnstone" <modp...@fadetoblack.me.uk>
Subject Re: No image creation in mod_perl (was RE: Apache2/MP2 Segfaults ...)
Date Mon, 27 Mar 2006 12:56:35 GMT
> Can you fork off a separate process to do this (that will die once it is
> completed)?

The only place where forking is useful is where you want something to
continue processing after sending the response back to the client.

You can achieve the same effective result by calling $r->child_terminate()
(assuming your using pre-fork). The currently running child exits at the end
of the request freeing any memory it's allocated, and the main apache server
process will fork a new child to replace it if needed.

Carl


Mime
View raw message