> -----Original Message-----
> From: David E. Wheeler [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 04, 2000 3:44 PM
> To: [EMAIL PROTECTED]
> Subject: Forking in mod_perl?
> 
> 
> Hi All,
> 
> Quick question - can I fork off a process in mod_perl? I've 
> got a piece
> of code that needs to do a lot of processing that's unrelated to what
> shows up in the browser. So I'd like to be able to fork the processing
> off and return data to the browser, letting the forked process handle
> the extra processing at its leisure. Is this doable? Is forking a good
> idea in a mod_perl environment? Might there be another way to do it?

http://perl.apache.org/guide/performance.html#Forking_and_Executing_Subproce
ss

the cleanup phase is also a good place to do extended processing.   It does
tie up the child until the processing finishes, but it at least make the
client think that the response is finished (so that little moving thingy in
netscape stops moving around)

HTH

--Geoff

> 
> TIA for the help!
> 
> David
> 
> -- 
> David E. Wheeler
> Software Engineer
> Salon Internet                                     ICQ:   15726394
> [EMAIL PROTECTED]                                       AIM:   dwTheory
> 

Reply via email to