[or-cvs] r20508: {torctl} Kill the interpreter if one of the TorCtl threads error out. (torctl/branches/stable/python/TorCtl)

mikeperry at seul.org mikeperry at seul.org
Wed Sep 9 07:27:16 UTC 2009


Author: mikeperry
Date: 2009-09-09 03:27:16 -0400 (Wed, 09 Sep 2009)
New Revision: 20508

Modified:
   torctl/branches/stable/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/branches/stable/python/TorCtl/TorCtl.py
===================================================================
--- torctl/branches/stable/python/TorCtl/TorCtl.py	2009-09-08 20:58:42 UTC (rev 20507)
+++ torctl/branches/stable/python/TorCtl/TorCtl.py	2009-09-09 07:27:16 UTC (rev 20508)
@@ -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