(struct File_spec): New member, errnum.
authorJim Meyering <jim@meyering.net>
Sat, 10 Jul 1999 09:56:37 +0000 (09:56 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 10 Jul 1999 09:56:37 +0000 (09:56 +0000)
commitae1e1e5e19f4e8f4c7e574772c7d19404a124d52
treec46f59c333ed845ed17e4e855ee4ac6f5f36b2f7
parent647e6ab6445abd43d5e7411b8c01043b0d79b076
(struct File_spec): New member, errnum.
(recheck): Record the new value of errno in f->errnum.  Don't
output an error message unless the new value of errno differs from
the old one.  Output a message if previously-inaccessible file
becomes accessible.
(tail_forever): Always recheck files whose fd is negative.  If the
file cannot be fstat'ed, record the errno value in f[i].errnum.
(tail_file): If the file cannot be open, record the errno value in
f->errnum.  If it can be opened, initialize f->errnum to zero.  If
it's a non-regular non-fifo file, initialize f->errnum to -1.
src/tail.c