Skip to content

Commit

Permalink
Merge pull request #301 from tjouan/kqueue-watch-file-error
Browse files Browse the repository at this point in the history
Ignore kqueue errors on removed entries
  • Loading branch information
e2 committed Mar 15, 2015
2 parents 12bf4e5 + 835ce5f commit 2030bac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/listen/adapter/bsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ def _watch_for_new_file(event)

def _watch_file(path, queue)
queue.watch_file(path, *options.events, &@callback)
rescue Errno::ENOENT => e
_log :warn, "kqueue: watch file failed: #{e.message}"
end

# Quick rubocop workaround
Expand Down

0 comments on commit 2030bac

Please sign in to comment.