From: Miroslav Lichvar Date: Thu, 3 Dec 2009 11:20:50 +0000 (+0100) Subject: Don't call ReadCookedTime after select timeout X-Git-Tag: 1.24-pre1~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6af87bd8f69d674942141fe850b35b90c277d89a;p=thirdparty%2Fchrony.git Don't call ReadCookedTime after select timeout --- diff --git a/sched.c b/sched.c index e20054a2..38f5e2ea 100644 --- a/sched.c +++ b/sched.c @@ -563,7 +563,6 @@ SCH_MainLoop(void) } status = select(one_highest_fd, &rd, NULL, NULL, ptv); - LCL_ReadCookedTime(&last_fdready, &err); if (status < 0) { if (!need_to_exit) @@ -571,6 +570,7 @@ SCH_MainLoop(void) } else if (status > 0) { /* A file descriptor is ready to read */ + LCL_ReadCookedTime(&last_fdready, &err); dispatch_filehandlers(status, &rd); } else {