Previously Mr.Rech wrote:
> 
> Not sure about this (never tried), but Python Library Reference says:
> 
> "Note: the functions registered via this module are not called when
> the program is killed by a signal, when a Python fatal internal error
> is detected, or when os._exit() is called."
> 
> Since Ctrl+C sends a SIGINT to your server process, I don't think
> atexit registered function will be executed.

You can setup a signal handler for SIGINT.

Wichert.

-- 
Wichert Akkerman <[EMAIL PROTECTED]>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to