bus: Show the errno if inotify cannot be initialized

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie 2021-12-10 13:09:15 +00:00
parent 7e61e0b53b
commit 25e22b2540

View file

@ -236,7 +236,7 @@ _init_inotify (BusContext *context)
#endif
if (inotify_fd < 0)
{
_dbus_warn ("Cannot initialize inotify");
_dbus_warn ("Cannot initialize inotify: %s", _dbus_strerror (errno));
goto out;
}