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 <rep...@bugs.python.org> <http://bugs.python.org/issue22439> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com