Fabio Durieux Lopes wrote: > def signalHandler(signum, frame): > terminate = True
This creates a new variable named "terminate" inside the signalHandler function's local scope. To adjust the value of a module-level global from inside a function, use the "global" keyword: def signalHandler(signum, frame): global terminate terminate = True Jeffrey -- http://mail.python.org/mailman/listinfo/python-list