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:
parent
0bf41e6c24
commit
95d61c2745
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user