Searched defs:watchdog_ctx (Results 1 - 1 of 1) sorted by relevance

/sssd-io/src/util/
H A Dutil_watchdog.c31 struct watchdog_ctx { struct
43 } watchdog_ctx; variable in typeref:struct:watchdog_ctx
50 prev_time = watchdog_ctx.timestamp;
51 cur_time = watchdog_ctx.timestamp = time(NULL);
54 if (write(watchdog_ctx.pipefd[1], "1", 1) != 1) {
75 if (__sync_add_and_fetch(&watchdog_ctx.ticks, 1) > WATCHDOG_MAX_TICKS) {
86 __sync_and_and_fetch(&watchdog_ctx.ticks, 0);
98 watchdog_ctx.te = tevent_add_timer(ev, ev,
99 tevent_timeval_current_ofs(watchdog_ctx.interval.tv_sec, 0),
103 if (!watchdog_ctx
[all...]

Completed in 12 milliseconds