[or-cvs] r20511: {torctl} Kill the interpreter if one of the TorCtl threads error out. (torctl/trunk/python/TorCtl)
mikeperry at seul.org
mikeperry at seul.org
Wed Sep 9 08:00:16 UTC 2009
Author: mikeperry
Date: 2009-09-09 04:00:16 -0400 (Wed, 09 Sep 2009)
New Revision: 20511
Modified:
torctl/trunk/python/TorCtl/TorCtl.py
Log:
Kill the interpreter if one of the TorCtl threads
error out. Rude, but knowing is better than not.
Modified: torctl/trunk/python/TorCtl/TorCtl.py
===================================================================
--- torctl/trunk/python/TorCtl/TorCtl.py 2009-09-09 07:52:31 UTC (rev 20510)
+++ torctl/trunk/python/TorCtl/TorCtl.py 2009-09-09 08:00:16 UTC (rev 20511)
@@ -516,6 +516,8 @@
break
if self._closeHandler is not None:
self._closeHandler(ex)
+ # I hate you for making me resort to this, python
+ os.kill(os.getpid(), 15)
return
def _eventLoop(self):
More information about the tor-commits
mailing list