[issue38435] Start the deprecation cycle for subprocess preexec_fn

Mark Mentovai report at bugs.python.org
Wed Mar 16 12:54:37 EDT 2022


Mark Mentovai <mark at moxienet.com> added the comment:

Another use case for preexec_fn: establishing a new controlling terminal, typically in conjunction with start_new_session=True. A preexec_fn may do something like

    os.close(os.open(os.ttyname(sys.stdin.fileno(), os.O_RDWR)))

with discussion at https://chromium-review.googlesource.com/c/chromium/src/+/3524204/comments/59f03e7c_f103cd7e.

----------
nosy: +markmentovai

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


More information about the Python-bugs-list mailing list