[mod_python] Child shutdowns?

Barry Warsaw barry at python.org
Fri Aug 29 19:14:00 EST 2003

On Fri, 2003-08-29 at 19:06, Greg Stein wrote:

> If you want to be a Real Man, then you can use _apache.mpm_query to verify
> that you're running single-threaded :-)

Ooh, ooh, the "hidden goodies"!  So far I've only dug into the
documented API ('course I could be missing this one).

> btw, if you're going to rely on prefork, then why don't you just use the
> exit handlers for the process rather than worrying about Apache's pool
> cleanup handling? If you're doing the latter to work within the Apache
> framework, then you really ought to keep threads in mind :-)

I tried setting sys.exitfunc but it wasn't called when I apachectl
stop'd, probably because that kills the process via SIGTERM, and I don't
think exit handlers are run in that case.  (I probably should have used
the atexit module, but that has the same semantics.)

I hear ya about threading issues.  Right now, I'm trying to get the
simplest possible thing that can work. <wink>


More information about the Mod_python mailing list