Lines Matching refs:inotifyFd_
35 : inotifyFd_(-1), pluginManager_(pluginManager), runMonitor_(true)
37 inotifyFd_ = inotify_init1(IN_CLOEXEC | IN_NONBLOCK);
38 if (inotifyFd_ < 0) {
39 PROFILER_LOG_INFO(LOG_CORE, "%s:inotify_init1 failed! inotifyFd_ : %d", __func__, inotifyFd_);
49 inotify_rm_watch(inotifyFd_, it->first);
52 if (inotifyFd_ != -1) {
53 close(inotifyFd_);
92 int wd = inotify_add_watch(inotifyFd_, fullpath, IN_ALL_EVENTS);
109 ssize_t readLength = read(inotifyFd_, buffer, MAX_BUF_SIZE);
153 FD_SET(inotifyFd_, &rFds);
156 int ret = select(inotifyFd_ + 1, &rFds, nullptr, nullptr, &time);
161 } else if (FD_ISSET(inotifyFd_, &rFds)) {