[mod_python] How to make mod_python know when Apache is shutdown/restarted?

Scott Chapman scott_list at mischko.com
Fri Aug 5 20:06:24 EDT 2005


Graham Dumpleton wrote:
> 
  > Since to get the server object you need a request object, the only
> option is to call it as a side effect of a request. To avoid calling it
> more than once, you simply need to keep a global data flag some where
> which you can set the first time you register the cleanup handler
> thereby avoiding calling it again. 

Is there any way to store something global in memory on a per-child 
basis, rather than in a session (which goes out to a dbm file)?

Scottb


More information about the Mod_python mailing list