changeset 97:554d91b1ffe6

Ensure ThreadPool threads are daemon threads.
author Allan Saddi <allan@saddi.com>
date Fri, 29 May 2009 10:26:04 -0700
parents 5bd897cada11
children 69b39aae73e7 0fe831ec2ca2
files flup/server/threadpool.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/flup/server/threadpool.py	Fri May 29 10:04:54 2009 -0700
     1.2 +++ b/flup/server/threadpool.py	Fri May 29 10:26:04 2009 -0700
     1.3 @@ -56,6 +56,7 @@
     1.4      def _start_new_thread(self):
     1.5          t = threading.Thread(target=self._worker)
     1.6          self._threads.append(t)
     1.7 +        t.daemon = True
     1.8          t.start()
     1.9          return t
    1.10