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.

classification
Title: asyncio.subprocess's communicate(None) does not close stdin
Type: Stage: patch review
Components: asyncio Versions: Python 3.9, Python 3.8, Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: asvetlov, marmarek, yselivanov
Priority: normal Keywords: patch

Created on 2020-02-24 22:09 by marmarek, last changed 2022-04-11 14:59 by admin.

Files
File name Uploaded Description Edit
commmunicate-test.py marmarek, 2020-02-24 22:09 Test script
Pull Requests
URL Status Linked Edit
PR 18650 open marmarek, 2020-02-24 22:35
Messages (2)
msg362605 - (view) Author: Marek Marczykowski-Górecki (marmarek) * Date: 2020-02-24 22:09
Standard subprocess's communicate() called with None input (or no argument at all closes process stdin. The asyncio variant does not.
This leads to issue with various processes that wait for EOF on stdin before terminating.

Test script attached.
msg362606 - (view) Author: Marek Marczykowski-Górecki (marmarek) * Date: 2020-02-24 22:12
This is BTW similar to https://bugs.python.org/issue26848
History
Date User Action Args
2022-04-11 14:59:27adminsetgithub: 83925
2020-02-24 22:35:32marmareksetkeywords: + patch
stage: patch review
pull_requests: + pull_request18010
2020-02-24 22:12:11marmareksetmessages: + msg362606
2020-02-24 22:09:41marmarekcreate