diff options
author | Allan Saddi <allan@saddi.com> | 2009-05-29 10:26:04 -0700 |
---|---|---|
committer | Allan Saddi <allan@saddi.com> | 2009-05-29 10:26:04 -0700 |
commit | bf3d1514c8e6edd861041019263f5afb018a6e74 (patch) | |
tree | 2f87aea63fe20b6cd74b5f5c8a9ac95e60ce8c27 | |
parent | 8a1fd4cf1a5c17db0593eb05992542e04d4dfa65 (diff) | |
download | flup-bf3d1514c8e6edd861041019263f5afb018a6e74.tar.gz |
Ensure ThreadPool threads are daemon threads.
-rw-r--r-- | flup/server/threadpool.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/flup/server/threadpool.py b/flup/server/threadpool.py index 5d4f0be..88efa70 100644 --- a/flup/server/threadpool.py +++ b/flup/server/threadpool.py @@ -56,6 +56,7 @@ class ThreadPool(object): def _start_new_thread(self): t = threading.Thread(target=self._worker) self._threads.append(t) + t.daemon = True t.start() return t |