No point in daemonizing threads, since this will run forever.
authorEric S. Raymond <esr@thyrsus.com>
Tue, 28 Aug 2012 10:52:22 +0000 (06:52 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Tue, 28 Aug 2012 10:52:22 +0000 (06:52 -0400)
irker.py

index 792ee16f1e09cdcc5b8e941d2f4144c0f9c706c7..8cff66d2525f5c7d40eb5d143081facfe7479ba3 100755 (executable)
--- a/irker.py
+++ b/irker.py
@@ -92,7 +92,6 @@ class Session():
         # The consumer thread
         self.queue = Queue.Queue()
         self.thread = threading.Thread(target=self.dequeue)
-        self.thread.daemon = True
         self.thread.start()
     def enqueue(self, message):
         "Enque a message for transmission."
@@ -144,7 +143,6 @@ class Irker:
         self.irc.add_global_handler("ping", lambda c, e: self._handle_ping(c,e))
         thread = threading.Thread(target=self.irc.process_forever)
         self.irc._thread = thread
-        thread.daemon = True
         thread.start()
         self.sessions = {}
         self.countmap = {}