[New-bugs-announce] [issue22439] subprocess.PIPE.stdin.flush() causes to hang while subprocess.PIPE.stdin.close() not

Sworddragon report at bugs.python.org
Fri Sep 19 01:33:01 CEST 2014


New submission from Sworddragon:

On sending something to stdin of a process that was called with subprocess (for example diff) I have figured out that all is working fine if stdin is closed but flushing stdin will cause a hang (the same as nothing would be done). In the attachments is a testcase that shows this problem. If executed the application will hang but if #pipe.stdin.close() will be uncommented (and optionally pipe.stdin.flush() commented out) all is working fine.

----------
components: Library (Lib)
files: test.py
messages: 227076
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: subprocess.PIPE.stdin.flush() causes to hang while subprocess.PIPE.stdin.close() not
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file36655/test.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22439>
_______________________________________


More information about the New-bugs-announce mailing list