Re: signal module released

Sjoerd Mullender (Sjoerd.Mullender@cwi.nl)
Mon, 29 Aug 1994 13:23:11 +0200

On Mon, Aug 29 1994 Guido.van.Rossum@cwi.nl wrote:

> 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)

This will work, but killed will never be called. You can't catch
SIGKILL, however hard you try. What Guido meant here is SIGTERM.

Sjoerd Mullender, CWI, P.O. Box 94079, 1090 GB Amsterdam, The Netherlands
E-Mail: Sjoerd.Mullender@cwi.nl; Phone: +31 20 592 4127; Fax: +31 20 592 4199
URL: <http://www.cwi.nl/cwi/people/Sjoerd.Mullender.html>