src/utils/inotify.cpp
/**
 * Poll the inotify fd for events
 *
 * \brief A wait_ms of -1 blocks until an event is fired
 */
Poll the inotify fd for events
\brief A wait_ms of -1 blocks until an event is fired
Poll the inotify fd for events \ brief A wait_ms of - 1 blocks until an event is fired
bool inotify_watch::poll(int wait_ms) const {
  if (m_fd == -1) {
    return false;
  }
  struct pollfd fds[1];
  fds[0].fd = m_fd;
  fds[0].events = POLLIN;
  ::poll(fds, 1, wait_ms);
  return fds[0].revents & POLLIN;
}
bool inotify_watch :: poll ( int wait_ms ) const { if ( m_fd == -1 ) { return false ; } struct pollfd fds [ 1 ] ; fds [ 0 ] . fd = m_fd ; fds [ 0 ] . events = POLLIN ; :: poll ( fds , 1 , wait_ms ) ; return fds [ 0 ] . revents & POLLIN ; }
Poll the inotify fd for events
 \brief A wait_ms of -1 blocks until an event is fired
Poll the inotify fd for events \ brief A wait_ms of - 1 blocks until an event is fired