Hostinfo day 6: RPM packaging, initscripts, hostinfo-status, hostinfo-test.
[virt-hostinfo.git] / hostinfod / monitor_sockets.c
index 547a535..17c3cda 100644 (file)
@@ -54,10 +54,12 @@ monitor_socket_dir (void)
     exit (1);
   }
 
+  debug ("creating inotify watch on '%s'", socket_dir);
+
 #ifdef HAVE_INOTIFY_INIT1
   sockets_inotify_fd = inotify_init1 (IN_NONBLOCK | IN_CLOEXEC);
   if (sockets_inotify_fd == -1) {
-    perrorf ("inotify_init");
+    perrorf ("inotify_init1");
     exit (1);
   }
 #else