search for: ioloop_timezone

Displaying 2 results from an estimated 2 matches for "ioloop_timezone".

2008 Jun 20
3
Time moved backwards by 4398 seconds
...how big the window should be? Thanks, Anders. --- ./src/lib/ioloop.c-orig 2008-06-20 10:45:54.000000000 +0200 +++ ./src/lib/ioloop.c 2008-06-20 10:47:36.000000000 +0200 @@ -230,8 +230,13 @@ struct timeval tv, tv_call; unsigned int t_id; - if (gettimeofday(&ioloop_timeval, &ioloop_timezone) < 0) - i_fatal("gettimeofday(): %m"); + /* The Linux gettimeofday() will sometimes jump forward + * by approximately 4398 seconds. Ignore that reading. */ + do { + if (gettimeofday(&ioloop_timeval, &ioloop_timezone) < 0) + i_fatal("gettimeofday(): %m"); + } w...
2004 Aug 25
0
[PATCH] move highest_fd calculations to ioloop-select.c
...are/dontdiff -x Makefile dovecot-1.0-test35.vanilla/src/lib/ioloop.c dovecot-1.0-test35/src/lib/ioloop.c --- dovecot-1.0-test35.vanilla/src/lib/ioloop.c 2004-08-23 17:46:41.000000000 +0400 +++ dovecot-1.0-test35/src/lib/ioloop.c 2004-08-25 10:32:08.000000000 +0400 @@ -15,24 +15,6 @@ struct timezone ioloop_timezone; static struct ioloop *current_ioloop = NULL; -static void update_highest_fd(struct ioloop *ioloop) -{ - struct io *io; - int max_highest_fd; - - max_highest_fd = ioloop->highest_fd-1; - ioloop->highest_fd = -1; - - for (io = ioloop->ios; io != NULL; io = io->next) {...