diff options
author | Simon McVittie <smcv@collabora.com> | 2021-12-10 13:09:15 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2021-12-10 13:20:08 +0000 |
commit | 75a0d069699831240ff216e7e6243e3ce3b6d433 (patch) | |
tree | 38b4b72309112cd65498d9a3d5a3f872ecb4d8fb | |
parent | 5eb3615ca393c0de144aba0193e62330e89942a2 (diff) | |
download | dbus-bus-inotify-error-handling.tar.gz |
bus: Show the errno if inotify cannot be initializedbus-inotify-error-handling
This will hopefully help to indicate why.
Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r-- | bus/dir-watch-inotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bus/dir-watch-inotify.c b/bus/dir-watch-inotify.c index 6cc02968..b52a24c0 100644 --- a/bus/dir-watch-inotify.c +++ b/bus/dir-watch-inotify.c @@ -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; } |