class INotify::Notifier
def close
-
(SystemCallError)
- if closing the underlying file descriptor fails.
def close stop if Native.close(@fd) == 0 @watchers.clear return end raise SystemCallError.new("Failed to properly close inotify socket" + case FFI.errno when Errno::EBADF::Errno; ": invalid or closed file descriptior" when Errno::EIO::Errno; ": an I/O error occured" end, FFI.errno) end