[issue37740] Python 3.7 sh hangs when using in threads, forking and logging

Gregory P. Smith report at bugs.python.org
Thu Aug 1 14:16:42 EDT 2019


Gregory P. Smith <greg at krypto.org> added the comment:

os.fork() cannot be safely used in an application that uses threads in any manner.  This is not something Python can fix.  This is a POSIX limitation.

The "sh" module on PyPI is incompatible with threaded applications on POSIX platforms due to its use of os.fork().

https://github.com/amoffat/sh/blob/master/sh.py#L1861

Raise this issue with them.

----------
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37740>
_______________________________________


More information about the Python-bugs-list mailing list