1999-04-11 Jim Meyering <meyering@ascend.com>
+ * Version 1.22i.
+
Fix the problem whereby `yes > k & sleep 1; tail -2c k' would infloop.
* src/tail.c (COPY_TO_EOF): Define.
(dump_remainder): Add parameter, n_bytes, and rewrite to use it.
(file_lines): Rename parameter.
(tail_bytes): Remove obsolete comment.
- Fix the problem whereby `yes > k & tail -1 k' would infloop.
+ Fix the problem whereby `yes > k & sleep 1; tail -1 k' would infloop.
* src/tail.c (dump_remainder): Move this function to precede the
new use in file_lines.
(tail_lines): Don't call dump_remainder here.
(file_lines): Call dump_remainder here instead.
+ Reported by Lehti Rami.
* lib/readtokens.c (readtoken, readtokens): Protoize.