Lines Matching refs:notifyFd
238 if (infos->notifyFd >= 0) {
239 int newWd = inotify_add_watch(infos->notifyFd, destPath.c_str(), watchEvents);
495 while (((len = read(infos->notifyFd, &buf, sizeof(buf))) < 0) && (errno == EINTR)) {}
533 fds[1].fd = infos->notifyFd;
534 while (infos->run && infos->exceptionCode == ERRNO_NOERR && infos->eventFd != -1 && infos->notifyFd != -1) {
663 infos->notifyFd = inotify_init();
664 if (infos->notifyFd < 0) {
673 callback->notifyFd = infos->notifyFd;
675 int newWd = inotify_add_watch(infos->notifyFd, infos->destPath.c_str(), IN_MODIFY);
677 LOGE("Failed to add watch, errno = %{public}d, notifyFd: %{public}d, destPath: %{public}s",
678 errno, infos->notifyFd, infos->destPath.c_str());
685 inotify_rm_watch(infos->notifyFd, newWd);
706 infos->notifyFd = -1;