[issue19809] Doc: subprocess should warn uses on race conditions when multiple threads spawn child processes

2021-03-08 Thread Eryk Sun
Eryk Sun added the comment: >> PEP 443 > > I guess that you mean the PEP 446 ;-) Yes, that's why I meant :$ -- ___ Python tracker ___

[issue19809] Doc: subprocess should warn uses on race conditions when multiple threads spawn child processes

2021-03-08 Thread STINNER Victor
STINNER Victor added the comment: > PEP 443 I guess that you mean the PEP 446 ;-) -- ___ Python tracker ___ ___ Python-bugs-list m

[issue19809] Doc: subprocess should warn uses on race conditions when multiple threads spawn child processes

2021-03-04 Thread Eryk Sun
Eryk Sun added the comment: 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 con

[issue19809] Doc: subprocess should warn uses on race conditions when multiple threads spawn child processes

2019-07-24 Thread Eryk Sun
Eryk Sun added the comment: > This is still the case on windows as the pipes created to talk to the > process might be inherited by two or more simultaneous CreateProcess > calls. subprocess already uses PROC_THREAD_ATTRIBUTE_HANDLE_LIST to address this problem, at least between its own subp

[issue19809] Doc: subprocess should warn uses on race conditions when multiple threads spawn child processes

2019-07-24 Thread Leonardo Santagada
Leonardo Santagada added the comment: This is still the case on windows as the pipes created to talk to the process might be inherited by two or more simultaneous CreateProcess calls. I've found a suggested solution to this: https://devblogs.microsoft.com/oldnewthing/20111216-00/?p=8873 By

[issue19809] Doc: subprocess should warn uses on race conditions when multiple threads spawn child processes

2013-11-27 Thread STINNER Victor
Changes by STINNER Victor : -- assignee: -> docs@python components: +Documentation nosy: +docs@python title: Python get stuck in second Popen call -> Doc: subprocess should warn uses on race conditions when multiple threads spawn child processes ___