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
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 2020-02-24 22:35 by marmarek.

File name Uploaded Description Edit 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
Date User Action Args
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