Re: FCGI application how to handle shutdown?

Chris Lightfoot <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <CZEf3XdQS8sv.C3Ijl1HJ6eIOndRvIB/[email protected]>
On Wed, Mar 09, 2005 at 09:42:22PM -0500, pps wrote:
> Hello,
> in a fast_cgi application I want to handle the event when a fcgi process 
> unloaded/goes down:
> 
> while(FCGI_Accept() >= 0){
> 	... process requests ...
> }
> ... handle unload
> 
> 
> For example I have some cashing in each fcgi app, and when it's unloaded 
> I want to be able to serialize accumulated data to preserve it.
> So far I couldn't figure out how to go past FCGI_Accept loop, fcgi 
> processes seem to be terminated without notifications.

-- are you catching SIGTERM? The apache mod_fastcgi
process manager sends SIGTERM to kill unneeded
applications.

-- 
``As Lord Denning said,
  there's no smoke without fire:
  Nil Combustibus Profumo.'' (Flanders and Swann)

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.