From: Eric S. Raymond Date: Tue, 28 Aug 2012 10:52:22 +0000 (-0400) Subject: No point in daemonizing threads, since this will run forever. X-Git-Tag: 1.0~83 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=91348ee417256fc1a70621f8acccd5f753730a21;p=irker.git No point in daemonizing threads, since this will run forever. --- diff --git a/irker.py b/irker.py index 792ee16..8cff66d 100755 --- 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 = {}