Gracefully exiting CLI application

Jan Kaliszewski zuo at chopin.edu.pl
Mon Jul 27 17:35:23 EDT 2009


27-07-2009 o 22:35:01 David <71david at libero.it> wrote:

> I am writing a command line application, and I need to perform some  
> cleaning
> on exit even if the process is killed.
> How can I do that with python?

See: http://docs.python.org/library/signal.html

Cheers,
*j

-- 
Jan Kaliszewski (zuo) <zuo at chopin.edu.pl>



More information about the Python-list mailing list