int tevent_common_loop_wait(struct tevent_context *ev,
const char *location)
{
- static time_t t=0;
- time_t new_t;
/*
* loop as long as we have events pending
ret, strerror(errno));
return ret;
}
- if (getpid() == ctdbd_pid) {
- new_t=time(NULL);
- if (t != 0) {
- if (t > new_t) {
- tevent_debug(ev, TEVENT_DEBUG_FATAL, __location__ " ERROR Time skipped backward by %d seconds\n", (int)(t-new_t));
- }
- /* We assume here that we get at least one event every 3 seconds */
- if (new_t > (t+3)) {
- tevent_debug(ev, TEVENT_DEBUG_FATAL, __location__ " ERROR Time jumped forward by %d seconds\n", (int)(new_t-t));
- }
- }
- t=new_t;
- }
}
tevent_debug(ev, TEVENT_DEBUG_WARNING,