Watched inotify events
@see www.tin.org/bin/man.cgi?section=7&topic=inotify @see github.com/nex3/rb-inotify/blob/master/lib/rb-inotify/notifier.rb#L99-L177
The message to show when the limit of inotify watchers is not enough
Initializes the Adapter. See {Listen::Adapter#initialize} for more info.
# File lib/listen/adapters/linux.rb, line 26 def initialize(directories, options = {}, &callback) super @worker = init_worker rescue Errno::ENOSPC abort(INOTIFY_LIMIT_MESSAGE) end
Starts the adapter.
@param [Boolean] blocking whether or not to block the current thread after starting
# File lib/listen/adapters/linux.rb, line 37 def start(blocking = true) @mutex.synchronize do return if @stop == false super end @worker_thread = Thread.new { @worker.run } @poll_thread = Thread.new { poll_changed_dirs } @poll_thread.join if blocking end
Generated with the Darkfish Rdoc Generator 2.