On Thu, 2011-10-13 at 10:16 -0700, Adam Ryan wrote:
> Thanks Michael.
>
> I tried this before but it doesn't work because, I think, the
> interpreter isn't going through its normal termination routine since
> there are still threads alive. I think this is a cart before the
> horse sort of thing.
I've been in the paster serve code recently and I think it does like an
"os._exit(3)" on reload, IIRC. Which is why the atexit hook is not
called. Here's the comment in the code about it:
# use os._exit() here and not sys.exit() since within a
# thread sys.exit() just closes the given thread and
# won't kill the process; note os._exit does not call
# any atexit callbacks, nor does it do finally blocks,
# flush open files, etc. In otherwords, it is rude.
I don't have any real suggestion about it, just pointing it out.
- C
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.