You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
interp: test and fix read with regular files as stdin
This worked on v3.8.0, but was broken by v3.9.0 starting to use the
cancelreader library to support cancellable reads from standard input.
The use of cancelreader works OK for stdin files being OS pipes,
but it does not work for stdin files which are regular files on Linux,
as regular files on Linux are always ready for reading and do not
support polling or cancelling in any way.
As such, if cancelreader fails to create a cancellable reader,
fall back to reading directly from the file without cancellation.
This approach is not ideal, so leave a TODO to improve it with
some form of new API proposed upstream.
Thanks to Andrew Imeson for reporting the bug, providing multiple
test cases which reproduced it, and doing a git bisect as well.
Fixes#1099.
0 commit comments