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 eryksun
Recipients docs@python, eryksun, neologix, owenlin, santagada, sbt, vstinner
Date 2021-03-04.16:47:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614876469.13.0.473663919868.issue19809@roundup.psfhosted.org>
In-reply-to
Content
I'm closing this issue because the behavior was addressed for Python 3 in POSIX and mostly addressed in Windows (PEP 443, bpo-19764). The switch to using PROC_THREAD_ATTRIBUTE_HANDLE_LIST with subprocess.Popen() in Windows at least makes scripts safe from race conditions as long as only the subprocess module is used. 

Eventually it would be better to use subprocess.Popen() to implement os.system() and, in Windows, os.spawnv[e] -- as was already implemented for os.popen(). In that case it may even be reasonable to use the handle list to implement pass_fds in Windows.
History
Date User Action Args
2021-03-04 16:47:49eryksunsetrecipients: + eryksun, vstinner, santagada, neologix, docs@python, sbt, owenlin
2021-03-04 16:47:49eryksunsetmessageid: <1614876469.13.0.473663919868.issue19809@roundup.psfhosted.org>
2021-03-04 16:47:49eryksunlinkissue19809 messages
2021-03-04 16:47:49eryksuncreate