Lines Matching refs:notify
211 _cleanup_close_ int fd = -1, notify = -1; in ask_password_plymouth() local
229 notify = inotify_init1(IN_CLOEXEC|IN_NONBLOCK); in ask_password_plymouth()
230 if (notify < 0) in ask_password_plymouth()
233 r = inotify_add_watch(notify, flag_file, IN_ATTRIB); /* for the link count */ in ask_password_plymouth()
260 pollfd[POLL_INOTIFY].fd = notify; in ask_password_plymouth()
276 r = ppoll_usec(pollfd, notify >= 0 ? 2 : 1, timeout); in ask_password_plymouth()
286 if (notify >= 0 && pollfd[POLL_INOTIFY].revents != 0) in ask_password_plymouth()
287 (void) flush_fd(notify); in ask_password_plymouth()
394 _cleanup_close_ int cttyfd = -1, notify = -1; in ask_password_tty() local
414 notify = inotify_init1(IN_CLOEXEC|IN_NONBLOCK); in ask_password_tty()
415 if (notify < 0) in ask_password_tty()
419 if (inotify_add_watch(notify, flag_file, IN_ATTRIB /* for the link count */) < 0) in ask_password_tty()
429 … if (inotify_add_watch(notify, "/run/systemd/ask-password", IN_ATTRIB /* for mtime */) < 0) in ask_password_tty()
480 .fd = notify, in ask_password_tty()
500 r = ppoll_usec(pollfd, notify >= 0 ? 2 : 1, timeout); in ask_password_tty()
510 if (notify >= 0 && pollfd[POLL_INOTIFY].revents != 0 && keyname) { in ask_password_tty()
511 (void) flush_fd(notify); in ask_password_tty()
716 _cleanup_close_ int socket_fd = -1, signal_fd = -1, notify = -1, fd = -1; in ask_password_agent() local
745 notify = inotify_init1(IN_CLOEXEC | IN_NONBLOCK); in ask_password_agent()
746 if (notify < 0) { in ask_password_agent()
750 … if (inotify_add_watch(notify, "/run/systemd/ask-password", IN_ATTRIB /* for mtime */) < 0) { in ask_password_agent()
826 pollfd[FD_INOTIFY].fd = notify; in ask_password_agent()
842 r = ppoll_usec(pollfd, notify >= 0 ? _FD_MAX : _FD_MAX - 1, timeout); in ask_password_agent()
857 if (notify >= 0 && pollfd[FD_INOTIFY].revents != 0) { in ask_password_agent()
858 (void) flush_fd(notify); in ask_password_agent()