Python CGI script - clean exit on kill

Guido Wagner guido at
Sun Mar 9 21:01:02 CET 2003

Hi !

I wrote a CGI script using Python, that has to do some clean up work before 
it terminates. If a User hits the stop or the reload button of his browser 
too early, apache kills the script before the cleanup can be done.

Do you have any ideas how to circumvent this ? I'm looking for something 
similar to PHP's Ignore_User_Abort(), or maybee there is a exception I 
could catch.

Thanks for your help in advance,

CU Guido

Guido Wagner

More information about the Python-list mailing list