john doe <tnagy1...@gmail.com> added the comment: The following piece of code does not seem to be thread-safe:
gc.disable() try: os.fork() except: ... If calling subprocess.Popen() is supposed to work from threads without any particular protection, then a lock is needed in subprocess.py: try: spawn_lock.acquire() gc.disable() try: os.fork() except: ... finally: spawn_lock.release() Such issues are very difficult to reproduce and to track. The documentation should at least mention that calling gc.enable() may cause subprocess() to hang! The following issue seems to be relevant: http://bugs.python.org/issue12739 ---------- nosy: +ita1024 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1336> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com