docs: add warning about multiproc on macOS

This commit is contained in:
James R. Barlow
2021-12-10 17:42:50 -08:00
parent e78f0cc56f
commit 1ec2ccca14
+8
View File
@@ -68,6 +68,14 @@ OCRmyPDF, use processes.
not take at least one of these steps, process semantics will prevent
OCRmyPDF from working correctly.
.. warning::
On macOS with Python 3.7, you must call
:func:`multiprocessing.set_start_method("spawn")`. Without this, multiprocessing
will be unstable. From the command line, OCRmyPDF does this automatically,
but as an API user you must do this. See Python bpo-33725 for details.
Python 3.8+ also resolve this automatically.
Logging
-------