diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-03-13 21:11:09 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-03-13 23:42:17 -0400 |
commit | 2ae56591b5b25b1ee33e40612f1ae0593218d56c (patch) | |
tree | 3268b03e6bd9b66e5f2e167d6f05824f875d86a5 /src/core | |
parent | d448c7927a8b75a9023b925e82a3109cfd490d70 (diff) |
core: ignore any issues with setting time on jobs_in_progress_event_source
CID #1237559.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/manager.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 7d573f3abb..24a66a28af 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -85,16 +85,16 @@ static int manager_dispatch_run_queue(sd_event_source *source, void *userdata); static int manager_run_generators(Manager *m); static void manager_undo_generators(Manager *m); -static int manager_watch_jobs_in_progress(Manager *m) { +static void manager_watch_jobs_in_progress(Manager *m) { usec_t next; assert(m); if (m->jobs_in_progress_event_source) - return 0; + return; next = now(CLOCK_MONOTONIC) + JOBS_IN_PROGRESS_WAIT_USEC; - return sd_event_add_time( + (void) sd_event_add_time( m->event, &m->jobs_in_progress_event_source, CLOCK_MONOTONIC, @@ -2707,7 +2707,9 @@ void manager_check_finished(Manager *m) { if (hashmap_size(m->jobs) > 0) { if (m->jobs_in_progress_event_source) - sd_event_source_set_time(m->jobs_in_progress_event_source, now(CLOCK_MONOTONIC) + JOBS_IN_PROGRESS_WAIT_USEC); + /* Ignore any failure, this is only for feedback */ + (void) sd_event_source_set_time(m->jobs_in_progress_event_source, + now(CLOCK_MONOTONIC) + JOBS_IN_PROGRESS_WAIT_USEC); return; } |