Searched refs:watch_fd (Results 1 - 2 of 2) sorted by relevance

/systemd/src/rfkill/
H A Drfkill.c96 int watch_fd, r; local
124 watch_fd = udev_monitor_get_fd(monitor);
125 if (watch_fd < 0)
126 return log_error_errno(watch_fd, "Failed to get watch fd: %m");
141 r = fd_wait_for_event(watch_fd, POLLIN, USEC_INFINITY);
/systemd/src/journal/
H A Djournalctl.c1861 _cleanup_close_ int watch_fd = -1; local
1893 watch_fd = inotify_init1(IN_NONBLOCK|IN_CLOEXEC);
1894 if (watch_fd < 0)
1897 r = inotify_add_watch(watch_fd, "/run/systemd/journal", IN_CREATE|IN_DONT_FOLLOW|IN_ONLYDIR);
1908 r = fd_wait_for_event(watch_fd, POLLIN, USEC_INFINITY);
1912 r = flush_fd(watch_fd);
1922 _cleanup_close_ int watch_fd = -1; local
1972 if (watch_fd < 0) {
1976 watch_fd = inotify_init1(IN_NONBLOCK|IN_CLOEXEC);
1977 if (watch_fd <
[all...]

Completed in 564 milliseconds