> I'm using threads, so I'd like ctrl-c to actually terminate the > program. If my memory serves me, ctrl-c is SIGINT, so in my code, in > the main thread, I write: Notice that Python already binds SIGINT, to install a handler that raises a KeyboardInterrupt. Regards, Martin