diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-16 22:52:53 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-16 22:53:07 -0400 |
commit | 18abe7bd3e13525b257da69ac49ff7841c289567 (patch) | |
tree | bcaa7126a17754868f7823708e54f0b2b814b905 /src | |
parent | 8c275eef38bf7e3e592e4cb35a497522d1f15bb6 (diff) |
core: nicer message when inotify watches are exhausted
inotify_add_watch returns ENOSPC, which translates to
"No space left on device", which is misleading.
https://bugs.freedesktop.org/show_bug.cgi?id=73628
Diffstat (limited to 'src')
-rw-r--r-- | src/core/path.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/path.c b/src/core/path.c index 20e454d96f..f54c77f6c3 100644 --- a/src/core/path.c +++ b/src/core/path.c @@ -99,7 +99,8 @@ int path_spec_watch(PathSpec *s, sd_event_io_handler_t handler) { break; } - log_warning("Failed to add watch on %s: %m", s->path); + log_warning("Failed to add watch on %s: %s", s->path, + errno == ENOSPC ? "too many watches" : strerror(-r)); r = -errno; if (cut) *cut = tmp; |