Closed spwhitton closed 7 years ago
I think this may be related to
https://bugs.python.org/issue28326
that is, stream objects lacking a .flush()
do not play nicely with multiprocessing and I may not be able to do much about that.
Does it work to attach an open /dev/null to stdout?
On Sun, Mar 12, 2017 at 05:27:09PM -0700, jbarlow83 wrote:
Does it work to attach an open /dev/null to stdout?
Yes, it does.
-- Sean Whitton
Workaround added in commit f035cb1
OCRmyPDF fails when stdout is not connected. Is this necessary?
Background: I am calling ocrmypdf from a program which attachs a logfile handle to stderr, and nothing to stdout. I can work around this issue by telling OCRmyPDF to write its output to stdout, and re-arranging my program accordingly.