trapping signal

Diez B. Roggisch deets at nospam.web.de
Thu Nov 27 13:56:21 EST 2008


tekion wrote:

> I have a while iterates forever. I would like to trap a SIGTERM signal
> and execute some clean up code. How would I do this in python? Thanks.

look into module "signal"

Diez



More information about the Python-list mailing list