This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: support pty.fork and os.forkpty actions in posix subprocess module
Type: Stage:
Components: Library (Lib) Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: gregory.p.smith
Priority: normal Keywords:

Created on 2017-08-28 23:01 by gregory.p.smith, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg300968 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2017-08-28 23:01
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)
History
Date User Action Args
2022-04-11 14:58:51adminsetgithub: 75477
2017-08-28 23:01:53gregory.p.smithcreate