stdio fails when output redirected to a file
|Reported by:||jknight||Owned by:|
(diff, github, buildbot, log)
|Author:||jknight, exarkun||Launchpad Bug:|
At least on linux. Behavior of other OSes may or may not vary. See attached test case.
It works as expected when running normally. However, when redirecting output to a file, connectionLost gets called immediately.
This is because os.read() throws OSError so enableReadHack=True, but then select always returns readable&writeable for files.