On Wed, Nov 20, 2002 at 11:48:53AM -0500, Greg Ward wrote: > Signal handling raises all sorts of red flags with me, mainly because > people much smarter than me stay away from it Run away, run away! > sys.exit() involves raising a Python exception, which undoubtedly > involves allocating memory, which is a no-no for signal handlers > (malloc() is not reentrant on some systems). That's not really a problem for signals in Python. The interpreter doesn't do anything inside the real signal handler except note that the signal occurred. The bytecode evaluation loop periodically checks if a signal has occurred and executes the handler. Neil