summaryrefslogtreecommitdiff
path: root/udev
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-11-13 01:52:33 +0100
committerKay Sievers <kay.sievers@vrfy.org>2008-11-13 01:52:33 +0100
commit95d61c274566700ea2d39a4a048e2fa6ea2cc58f (patch)
tree8b2893a345a57d34a2ecaa8774b575de13bce5b0 /udev
parent0bf41e6c24ac3d8cea08dd965e29b0d66ef51f1a (diff)
set errno = ENOSYS in inotify stub
Diffstat (limited to 'udev')
-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");