Mark Mentovai <[email protected]> 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 <[email protected]>
<https://bugs.python.org/issue38435>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com