[issue43142] Do not add duplicate FDs to list in duplicate_for_child()

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: I can't (lacking multiprocessing knowledge), but someone else might. PS: when replying via email, please delete post you are responding to. When added to the web page, the copy is redundant noise. -- ___ Python t

[issue43142] Do not add duplicate FDs to list in duplicate_for_child()

2021-02-12 Thread Sanchit
] Do not add duplicate FDs to list in duplicate_for_child() Terry J. Reedy added the comment: 3.7 and before only get security fixes. -- nosy: +davin, pitrou, terry.reedy versions: -Python 3.6, Python 3.7 ___ Python tracker <https://bugs.pyt

[issue43142] Do not add duplicate FDs to list in duplicate_for_child()

2021-02-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.7 and before only get security fixes. -- nosy: +davin, pitrou, terry.reedy versions: -Python 3.6, Python 3.7 ___ Python tracker ___ __

[issue43142] Do not add duplicate FDs to list in duplicate_for_child()

2021-02-05 Thread Sanchit
Change by Sanchit : -- keywords: +patch pull_requests: +23257 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24461 ___ Python tracker ___

[issue43142] Do not add duplicate FDs to list in duplicate_for_child()

2021-02-05 Thread Sanchit
New submission from Sanchit : While spawning, if a process having code built on top of Python's multiprocessing module calls multiprocessing.reduction.DupFd() (in /Lib/multiprocessing/reduction.py) multiple times on the same File descriptor by mistake, then it ends up invoking duplicate_for_c