Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.1RC3
-
Component/s: Core Classes/Modules
-
Labels:None
-
Number of attachments :
Description
Reported on IRC:
/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
Can you either give us a script that reproduces this behavior, or try again with current trunk? Charles has reworked the IO subsystem lately, and it might well already be fixed.