[New-bugs-announce] [issue22443] read(1) blocks on unflushed output

Sworddragon report at bugs.python.org
Fri Sep 19 16:08:08 CEST 2014


New submission from Sworddragon:

On reading the output of an application (for example "apt-get download firefox") that dynamically changes a line (possibly with the terminal control character \r) I have noticed that read(1) does not read the output until it has finished with a newline. This happens even with disabled buffering. In the attachments is a testcase for this problem. Also here are 2 screenshots to compare the results:

Direct call: http://picload.org/image/crldgri/normal.png
Subprocess: http://picload.org/image/crldgrw/subprocess.png

----------
components: Library (Lib)
files: test.py
messages: 227097
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: read(1) blocks on unflushed output
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file36661/test.py

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


More information about the New-bugs-announce mailing list