X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Futil.c;h=f5ee29897f519d39071dd665ae650640025b6d3d;hp=973cee15e31a2d55fc49be2f2a9366d449f8a039;hb=e5ebf783cb8e353bf1e07b34ac344bd4883a4ec2;hpb=5f36328f55dfc7942b7db74271206d0c60c48799 diff --git a/src/util.c b/src/util.c index 973cee15e..f5ee29897 100644 --- a/src/util.c +++ b/src/util.c @@ -3380,7 +3380,7 @@ int ask_password_tty(const char *message, usec_t until, const char *flag_file, c 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; }