Here's the URL: ftp://ftp.cwi.nl/pub/python/signals.tar.gz.
I'm afraid no documentation exists yet -- however it should be fairly
simple -- e.g. to install a handler for SIGKILL:
from signal import *
.
.
.
def killed(signo, frame):
print 'Killed!!!'
...cleanup code...
sys.exit(1)
.
.
.
signal(SIGKILL, killed)
Interaction with threads is defined as follows: only the main thread
can catch signals. Doing it in any other way would make things even
more system dependent, as the interaction between threads and signals
is rather different for different systems...
--Guido van Rossum, CWI, Amsterdam <Guido.van.Rossum@cwi.nl>
<URL:http://www.cwi.nl/cwi/people/Guido.van.Rossum.html>