chiark / gitweb /
ask-password: add minimal plymouth password agent
[elogind.git] / src / util.c
index 973cee15e31a2d55fc49be2f2a9366d449f8a039..f5ee29897f519d39071dd665ae650640025b6d3d 100644 (file)
@@ -3380,7 +3380,7 @@ int ask_password_tty(const char *message, usec_t until, const char *flag_file, c
         assert(_passphrase);
 
         if (flag_file) {
         assert(_passphrase);
 
         if (flag_file) {
-                if ((notify = inotify_init1(IN_CLOEXEC)) < 0) {
+                if ((notify = inotify_init1(IN_CLOEXEC|IN_NONBLOCK)) < 0) {
                         r = -errno;
                         goto finish;
                 }
                         r = -errno;
                         goto finish;
                 }