New submission from Gregory P. Smith: The PyPI pexpect.spawn API is incompatible with multithreaded code thanks to its dependency on pty.fork() and running non async signal safe code between fork() and exec(). https://github.com/pexpect/ptyprocess/issues/43 https://github.com/pexpect/pexpect/issues/369
If subprocess supported pty.fork() and pexpect.pty_spawn.spawn like actions, pexpect could use that by default instead of the threading incompatible pty.fork(). (this is a brainstorm, see what the pexpect maintainers want in the above github issues) ---------- components: Library (Lib) messages: 300968 nosy: gregory.p.smith priority: normal severity: normal status: open title: support pty.fork and os.forkpty actions in posix subprocess module versions: Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue31296> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com