Gregory P. Smith <g...@krypto.org> added the comment: This bug stems from:
https://github.com/python/cpython/blob/master/Modules/_posixsubprocess.c#L454 When stdout=fd is passed, that results in c2pwrite=fd. The stdin/stdout/stderr pipe fds are closed when > 2 without checking to see if they are listed in pass_fds. https://github.com/python/cpython/blob/master/Lib/subprocess.py#L1306 maps the following: stdin -> p2cread stdout -> c2pwrite stderr -> errwrite ---------- assignee: -> gregory.p.smith versions: +Python 3.8 _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32270> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com