]> git.ipfire.org Git - thirdparty/coreutils.git/commit
An invalid initial value for *read_pos would result in
authorJim Meyering <jim@meyering.net>
Sat, 16 Aug 2003 17:28:33 +0000 (17:28 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 16 Aug 2003 17:28:33 +0000 (17:28 +0000)
commitf4be51104a8e353795716a63268d0d32aa97de7a
tree8ee77c7ff24685bb4055e1b0ac2b661816b27806
parentd14d30c58f881c006d919710cfd66639f4dbb6bd
An invalid initial value for *read_pos would result in
`tail -n0 -f FILE' and `tail -c0 -f FILE' doing what amounted to a
busy-wait rather than sleeping between iterations.  The bug manifests
itself only when tailing regular files that are initially nonempty.

(tail_bytes): Set *read_pos to new file offset after
each xlseek call.
(tail_lines): Likewise, after lseek calls.
src/tail.c