SIGKILL is not trappable. You probably want SIGTERM. Furthermore, this signal will be sent to the process, not some thread or class instance within a process.
Maybe you need some other mechanism? Is the signal going to be from the same python process? If so, just call it directly. Otherwise, there are a great deal of other interprocess communications options. Sockets are probably the most cross platform nd widely understood. Check out the UDPServer class in the standard library. You'd need to write a client script to send the commands, but this is trivial once you have the server set up. Cheers _______________________________________________ Tutor maillist - [email protected] http://mail.python.org/mailman/listinfo/tutor
