diff options
author | Tom Gundersen <teg@jklm.no> | 2015-04-29 16:05:32 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-04-29 17:08:31 +0200 |
commit | 7dfbe2e3fc0215b49d8202a32beb6b1aae08c4e4 (patch) | |
tree | a4916772973c4a6053f5eec7492b273304e473e5 /src/core/busname.c | |
parent | 77cfd1139cd116e9761aacfaf8c3cde71fc5d058 (diff) |
core: annotate event sources
Diffstat (limited to 'src/core/busname.c')
-rw-r--r-- | src/core/busname.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/core/busname.c b/src/core/busname.c index aba2a96c1a..48cc0459ed 100644 --- a/src/core/busname.c +++ b/src/core/busname.c @@ -124,12 +124,18 @@ static int busname_arm_timer(BusName *n) { return sd_event_source_set_enabled(n->timer_event_source, SD_EVENT_ONESHOT); } - return sd_event_add_time( + r = sd_event_add_time( UNIT(n)->manager->event, &n->timer_event_source, CLOCK_MONOTONIC, now(CLOCK_MONOTONIC) + n->timeout_usec, 0, busname_dispatch_timer, n); + if (r < 0) + return r; + + (void) sd_event_source_set_description(n->timer_event_source, "busname-timer"); + + return 0; } static int busname_add_default_default_dependencies(BusName *n) { @@ -285,6 +291,7 @@ static int busname_watch_fd(BusName *n) { r = sd_event_source_set_enabled(n->starter_event_source, SD_EVENT_ON); else r = sd_event_add_io(UNIT(n)->manager->event, &n->starter_event_source, n->starter_fd, EPOLLIN, busname_dispatch_io, n); + (void) sd_event_source_set_description(n->starter_event_source, "busname-starter"); if (r < 0) { log_unit_warning_errno(UNIT(n)->id, r, "Failed to watch starter fd: %m"); busname_unwatch_fd(n); |