[mod_python] Child shutdowns?

Barry Warsaw barry at python.org
Fri Aug 29 15:57:44 EST 2003

I'm very likely missing it, but is there some way to run a callable when
the child processes are terminated (i.e. through apachectl stop)?

Seems like the server object's register_cleanup() ought to do it, except
that I have some startup code that gets run when my main module is
imported and at that point I don't have a request object to use as the
first argument to register_cleanup().

Any hints (or examples!)?


More information about the Mod_python mailing list