changeset 973:8419daaa7a0e

internal: Make the page serializer thread daemon. This avoids problems where the main process hangs if there's a critical failure.
author Ludovic Chabant <ludovic@chabant.com>
date Tue, 17 Oct 2017 01:04:10 -0700
parents bbf5a96b56db
children 72f17534d58e
files piecrust/pipelines/_pagebaker.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/pipelines/_pagebaker.py	Tue Oct 17 01:03:07 2017 -0700
+++ b/piecrust/pipelines/_pagebaker.py	Tue Oct 17 01:04:10 2017 -0700
@@ -34,6 +34,7 @@
         self._writer_queue = queue.Queue()
         self._writer = threading.Thread(
             name='PageSerializer',
+            daemon=True,
             target=_text_writer,
             args=(self._writer_queue,))
         self._writer.start()