core: annotate event sources

This commit is contained in:
Tom Gundersen
2015-04-29 17:08:31 +02:00
parent 77cfd1139c
commit 7dfbe2e3fc
13 changed files with 93 additions and 8 deletions
+2
View File
@@ -73,6 +73,8 @@ int path_spec_watch(PathSpec *s, sd_event_io_handler_t handler) {
if (r < 0)
goto fail;
(void) sd_event_source_set_description(s->event_source, "path");
/* This assumes the path was passed through path_kill_slashes()! */
for (slash = strchr(s->path, '/'); ; slash = strchr(slash+1, '/')) {