chiark / gitweb /
set errno = ENOSYS in inotify stub
authorKay Sievers <kay.sievers@vrfy.org>
Thu, 13 Nov 2008 00:52:33 +0000 (01:52 +0100)
committerKay Sievers <kay.sievers@vrfy.org>
Thu, 13 Nov 2008 00:52:33 +0000 (01:52 +0100)
udev/udev-sysdeps.h
udev/udevd.c

index eaeab86f6b1cd6b7bcaaf4cef3d37888eca428b8..08d7e48543ba1fdafc83b4945a2537bd6b21bf27 100644 (file)
@@ -33,6 +33,7 @@
 #ifndef HAVE_INOTIFY
 static inline int inotify_init(void)
 {
+       errno = ENOSYS;
        return -1;
 }
 
index 15a197e561e1674d91b478b072763f2baff9f374..08a87b033b46a47c2a60e3683d7d340449391591 100644 (file)
@@ -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");