Permalink
Switch branches/tags
Nothing to show
Commits on Jan 29, 2016
  1. Merge pull request #23 from craig65535/fix-immediate-reopen-on-file-m…

    jayson committed Jan 29, 2016
    …oved
    
    When the input file is moved, do not set @reopen_on_eof right away.
Commits on Jan 15, 2016
  1. Bumping version for new gem

    jayson committed Jan 15, 2016
  2. Merge pull request #25 from jayson/master

    jordansissel committed Jan 15, 2016
    Fixing race condition when watching symlinks that change frequently
Commits on Aug 2, 2013
  1. When the input file is moved, do not set @reopen_on_eof right away.

    Craig Davison
    Craig Davison committed Aug 2, 2013
    Setting @reopen_on_eof on a file move notification could result in data not being read from the input file.
    Say I want to use FileTail to read a log file. Typically, a log file is rolled/rotated by:
    1. Renaming it (X -> Y)
    2. Closing it (and flusing any output)
    3. Reopening a new file with the original name (X)
    If, between steps 1 and 2, FileTail receives notification the file was moved, sets @reopen_on_eof, reads, and gets an EOF, it will miss any data that was not flushed by the process writing the file.
    However, this case is handled correctly in a different part of the code. If a normal read results in an EOF, @reopen_on_eof will be set if the file exists (by name) and has a changed inode. Therefore, setting @reopen_on_eof here is unnecessary.
Commits on Jun 16, 2013
  1. Merge pull request #21 from darkskiez/master

    jordansissel committed Jun 16, 2013
    Calling .close before file had fully opened resulted in crash
Commits on Dec 6, 2012
  1. Dont crash on open if already closed

    Mark Bryars
    Mark Bryars committed Dec 6, 2012
    Calling .close before file had fully opened resulted in crash
    
    [Fixes #9]
Commits on Aug 12, 2012
  1. Merge pull request #16 from eric/dont-squelch-enoent

    jordansissel committed Aug 12, 2012
    Make sure Errno::ENOENT is raised when File.stat() fails
Commits on Feb 13, 2012
  1. Make sure Errno::ENOENT is raised when File.stat() fails

    eric committed Feb 13, 2012
    EventMachine::FileTail#handle_eof() is expecting an ENOENT when a stat
    fails, but instead is getting back a nil stat struct.
Commits on Aug 29, 2011
  1. add todo

    jordansissel committed Aug 29, 2011
  2. - version bump

    jordansissel committed Aug 29, 2011
  3. Merge pull request #12 from johnae/master

    jordansissel committed Aug 29, 2011
    Proper closing of a filetail and stopping of a glob watch.
  4. Hmm. Timers are instantiated differently it seems. Fix cancel.

    johnae committed Aug 29, 2011
    Why they're instantiated in different ways I don't know. Perhaps
    clean this up?
  5. Some timers were possibly still left running. Fixed.

    johnae committed Aug 29, 2011
    Make sure all timers are canceled.
  6. Starting/stopping a globwatch. Proper closing of tail.

    johnae committed Aug 29, 2011
    This adds functionality to cleanup properly after a file tail
    and a globwatch. No timers are left running and no files are
    left open when stopping either a globwatch or tail.
Commits on Aug 10, 2011
  1. - version bump

    jordansissel committed Aug 10, 2011
  2. Merge pull request #11 from technorama/master

    jordansissel committed Aug 10, 2011
    fixes crash during log rotation
Commits on Jun 15, 2011
Commits on Feb 22, 2011
Commits on Feb 16, 2011
  1. Fixed gemspec file

    gaiottino authored and iconara committed Dec 20, 2010
  2. Made tests runnable in Ruby 1.9

    iconara committed Feb 16, 2011
    . is no longer in the load path by default
Commits on Dec 29, 2010
Commits on Dec 25, 2010
Commits on Dec 4, 2010
Commits on Dec 3, 2010
  1. Fleshed out the :unbind callback as it is needed for us to play nicel…

    gorsuch committed Dec 3, 2010
    …y with FreeBSD's log rotation scheme.
Commits on Nov 8, 2010
  1. - Add EOF to the tests

    jordansissel committed Nov 8, 2010