chiark / gitweb /
log_error() if inotify_add_watch() fails
[elogind.git] / src / shared / ask-password-api.c
index 8a0fb89a84b8b69f61cb0a316e4c4d16ba7f56a4..10e6ae0614809ca9a6df9667b4944ce89f6be1c0 100644 (file)
@@ -78,6 +78,7 @@ int ask_password_tty(
                 }
 
                 if (inotify_add_watch(notify, flag_file, IN_ATTRIB /* for the link count */) < 0) {
+                        log_error("Failed to add watch on %s: %m", flag_file);
                         r = -errno;
                         goto finish;
                 }