mirror of
https://github.com/systemd/systemd.git
synced 2026-07-21 06:50:38 +00:00
set errno = ENOSYS in inotify stub
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#ifndef HAVE_INOTIFY
|
||||
static inline int inotify_init(void)
|
||||
{
|
||||
errno = ENOSYS;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user