Author gregory.p.smith
Recipients gregory.p.smith
Date 2019-10-10.18:18:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1570731497.4.0.313201495913.issue38435@roundup.psfhosted.org>
In-reply-to
Content
subprocess's preexec_fn feature needs to enter PendingDeprecationWarning state in 3.9, to become a DeprecationWarning in 3.10, with a goal of removing it in 3.11.

Rationale: We now live in a world full of threads, it is entirely unsafe to call back into the python interpreter within the forked child before exec per POSIX specification.

We've also already made preexec_fn no longer supported from CPython subinterpreters in 3.8.

If there are not already issues open for desired features of subprocess that do not yet have replacements or workarounds for *specific* actions that preexec_fn is being used for in your application, please open feature requests for those.  (ex: calling umask is https://bugs.python.org/issue38417, and group, uid, gid setting has already landed in 3.9)
History
Date User Action Args
2019-10-10 18:18:17gregory.p.smithsetrecipients: + gregory.p.smith
2019-10-10 18:18:17gregory.p.smithsetmessageid: <1570731497.4.0.313201495913.issue38435@roundup.psfhosted.org>
2019-10-10 18:18:17gregory.p.smithlinkissue38435 messages
2019-10-10 18:18:17gregory.p.smithcreate