summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--udev/udev-sysdeps.h1
-rw-r--r--udev/udevd.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/udev/udev-sysdeps.h b/udev/udev-sysdeps.h
index eaeab86f6b..08d7e48543 100644
--- a/udev/udev-sysdeps.h
+++ b/udev/udev-sysdeps.h
@@ -33,6 +33,7 @@
#ifndef HAVE_INOTIFY
static inline int inotify_init(void)
{
+ errno = ENOSYS;
return -1;
}
diff --git a/udev/udevd.c b/udev/udevd.c
index 15a197e561..08a87b033b 100644
--- a/udev/udevd.c
+++ b/udev/udevd.c
@@ -864,7 +864,7 @@ int main(int argc, char *argv[])
IN_CREATE | IN_DELETE | IN_MOVE | IN_CLOSE_WRITE);
}
} else if (errno == ENOSYS)
- err(udev, "the kernel does not support inotify, udevd can't monitor rules file changes\n");
+ info(udev, "unable to use inotify, udevd will not monitor rule files changes\n");
else
err(udev, "inotify_init failed: %m\n");