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

2019-08-01 Thread Gregory P. Smith
Gregory P. Smith 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

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

2019-08-01 Thread mzbuild
New submission from mzbuild : Hi, We use the sh module in a threaded context to execute shell commands. When we were migrating to python 3 from python 2 we encountered some commands hanging. We created a test script that recreates the issue we are seeing. `import sh import logging import