Base
Listener implementation for Linux `inotify`.
Watched inotify events
@see www.tin.org/bin/man.cgi?section=7&topic=inotify @see github.com/nex3/rb-inotify
The message to show when the limit of inotify watchers is not enough
# File lib/listen/adapter/linux.rb, line 29 def initialize(listener) require 'rb-inotify' super end
# File lib/listen/adapter/linux.rb, line 25 def self.usable? RbConfig::CONFIG['target_os'] =~ /linux/ end
# File lib/listen/adapter/linux.rb, line 34 def start worker = _init_worker Thread.new { worker.run } rescue Errno::ENOSPC STDERR.puts INOTIFY_LIMIT_MESSAGE STDERR.flush abort(INOTIFY_LIMIT_MESSAGE) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.