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.

Author markmentovai
Recipients diekhans, gregory.p.smith, izbyshev, markmentovai, serhiy.storchaka, vstinner
Date 2022-03-16.16:54:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1647449677.74.0.318498540324.issue38435@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2022-03-16 16:54:37markmentovaisetrecipients: + markmentovai, gregory.p.smith, vstinner, diekhans, serhiy.storchaka, izbyshev
2022-03-16 16:54:37markmentovaisetmessageid: <1647449677.74.0.318498540324.issue38435@roundup.psfhosted.org>
2022-03-16 16:54:37markmentovailinkissue38435 messages
2022-03-16 16:54:37markmentovaicreate