1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-25 01:34:28 +03:00

set errno = ENOSYS in inotify stub

This commit is contained in:
Kay Sievers 2008-11-13 01:52:33 +01:00
parent 0bf41e6c24
commit 95d61c2745
2 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@
#ifndef HAVE_INOTIFY
static inline int inotify_init(void)
{
errno = ENOSYS;
return -1;
}

View 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");