diff piecrust/pipelines/_pagebaker.py @ 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 d6d35b2efd04
children 45ad976712ec
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()