In article <mailman.1961.1265383809.28905.python-l...@python.org>, mk <mrk...@gmail.com> wrote: > >I have a problem with a threaded program: it frequently hangs on sys.exit. > >The problem is that my program uses threads which in turn use paramiko >library, which itself is threaded. > >I try to gracefully close the threads (below), but it doesn't always >work, if paramiko calls happen to be at stage of negotiating ssh >connection or smth similar. > >The only workable solution I have is a program sending itself SIGKILL, >which makes it terminated by OS (I think so).
You can also use os._exit(). -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "At Resolver we've found it useful to short-circuit any doubt and just refer to comments in code as 'lies'. :-)" -- http://mail.python.org/mailman/listinfo/python-list