[Zope3-checkins] SVN: Zope3/trunk/src/zope/server/ Let Ctrl-C kill the thread

Shane Hathaway shane at zope.com
Mon Sep 6 21:32:04 EDT 2004


Log message for revision 27457:
  Let Ctrl-C kill the thread
  


Changed:
  U   Zope3/trunk/src/zope/server/ftp/tests/test_ftpserver.py
  U   Zope3/trunk/src/zope/server/http/tests/test_httpserver.py


-=-
Modified: Zope3/trunk/src/zope/server/ftp/tests/test_ftpserver.py
===================================================================
--- Zope3/trunk/src/zope/server/ftp/tests/test_ftpserver.py	2004-09-06 23:27:27 UTC (rev 27456)
+++ Zope3/trunk/src/zope/server/ftp/tests/test_ftpserver.py	2004-09-07 01:32:04 UTC (rev 27457)
@@ -87,6 +87,7 @@
         self.counter = 0
         self.thread_started = Event()
         self.thread = Thread(target=self.loop)
+        self.thread.setDaemon(True)
         self.thread.start()
         self.thread_started.wait(10.0)
         self.assert_(self.thread_started.isSet())

Modified: Zope3/trunk/src/zope/server/http/tests/test_httpserver.py
===================================================================
--- Zope3/trunk/src/zope/server/http/tests/test_httpserver.py	2004-09-06 23:27:27 UTC (rev 27456)
+++ Zope3/trunk/src/zope/server/http/tests/test_httpserver.py	2004-09-07 01:32:04 UTC (rev 27457)
@@ -94,6 +94,7 @@
         self.counter = 0
         self.thread_started = Event()
         self.thread = Thread(target=self.loop)
+        self.thread.setDaemon(True)
         self.thread.start()
         self.thread_started.wait(10.0)
         self.assert_(self.thread_started.isSet())



More information about the Zope3-Checkins mailing list