stdio fails when output redirected to a file
|Reported by:||jknight||Owned by:|
branch-diff, diff-cov, branch-cov, buildbot
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.