From: Carsten Haitzler (Rasterman) Date: Tue, 22 Oct 2013 07:11:00 +0000 (+0100) Subject: for ecore system time changed - use a real time in the future, not X-Git-Tag: submit/devel/efl/20131029.075644~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7736a96c4f5c7f53f721b0d659264d18dd4a1134;p=platform%2Fupstream%2Fefl.git for ecore system time changed - use a real time in the future, not time 0 for ECORE_EVENT_SYSTEM_TIMEDATE_CHANGED we use a timerfd on linux (and also support talking to systemd) to detet time/date changes. the timerfd was set up to go off at the absolute time of 0. since that is almost always... in the past.. lets set a REAL time in the future. (almost end of time) --- diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c index 3a6210d..045ccb1 100644 --- a/src/lib/ecore/ecore_main.c +++ b/src/lib/ecore/ecore_main.c @@ -803,6 +803,7 @@ detect_time_changes_start(void) if (realtime_fd < 0) return; memset(&its, 0, sizeof(its)); + its.it_value.tv_sec += 0xfffffff0; // end of time - 0xf if (timerfd_settime(realtime_fd, TFD_TIMER_ABSTIME | TFD_TIMER_CANCELON_SET, &its, NULL) < 0)