Tailing a file with file-tail blows up with EOF when the file gets truncated
----------------------------------------------------------------------------
Key: JRUBY-1897
URL: http://jira.codehaus.org/browse/JRUBY-1897
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Reporter: Charles Oliver Nutter
Fix For: JRuby 1.1
Reported on IRC:
{noformat}
/opt/local/jruby-1.1b1/lib/ruby/gems/1.8/gems/file-tail-1.0.2/lib/file/tail.rb:300:in
`loop': End of file reached (EOFError)
from
/opt/local/jruby-1.1b1/lib/ruby/gems/1.8/gems/file-tail-1.0.2/lib/file/tail.rb:300:in
`tail'
from
/opt/local/jruby-1.1b1/lib/ruby/gems/1.8/gems/file-tail-1.0.2/lib/file/tail.rb:300:in
`tail'
from script/logmonster:26:in `open'
from
/opt/local/jruby-1.1b1/lib/ruby/gems/1.8/gems/file-tail-1.0.2/lib/file/tail.rb:101:in
`open'
To reproduce: tail a file with lines in it (tail advances file pointer to max),
truncate file
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email