Cees Hek wrote:
Jim Morrison [Mailing-Lists] wrote:

Hello,

Not sure if this isn't slightly OT, but wonder if someone can help..


It seems on topic to me...

I have a piece of one of my mod_perl apps that potentially takes quite a
while to complete. What I would like to do is to get Apache/mod_perl to
start a second process which would do the work, return a page to the
user, and get on with the next thing..


Using fork is expensive. It will use up as much memory as the current child is already using, so you might as well just use the current child to finished the processing.

That will work only if you care to wait for all processes to finish untill you can restart apache. forking and detaching the process allows you shutdown your httpd servers without affecting your long term processes.



__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com


-- Reporting bugs: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html



Reply via email to