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/scope.c | |
parent | 77cfd1139cd116e9761aacfaf8c3cde71fc5d058 (diff) |
core: annotate event sources
Diffstat (limited to 'src/core/scope.c')
-rw-r--r-- | src/core/scope.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/scope.c b/src/core/scope.c index cbfa3369ab..b99eca90e0 100644 --- a/src/core/scope.c +++ b/src/core/scope.c @@ -81,12 +81,18 @@ static int scope_arm_timer(Scope *s) { return sd_event_source_set_enabled(s->timer_event_source, SD_EVENT_ONESHOT); } - return sd_event_add_time( + r = sd_event_add_time( UNIT(s)->manager->event, &s->timer_event_source, CLOCK_MONOTONIC, now(CLOCK_MONOTONIC) + s->timeout_stop_usec, 0, scope_dispatch_timer, s); + if (r < 0) + return r; + + (void) sd_event_source_set_description(s->timer_event_source, "scope-timer"); + + return 0; } static void scope_set_state(Scope *s, ScopeState state) { |