summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-10-22 08:11:00 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-10-22 08:12:48 +0100
commit7736a96c4f5c7f53f721b0d659264d18dd4a1134 (patch)
tree7cc97e9b8b1fd40af3e1b4340162bb39d673aae8
parent208c4242388b23c35ec9e0d4e37520cf89135f46 (diff)
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)
-rw-r--r--src/lib/ecore/ecore_main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore/ecore_main.c b/src/lib/ecore/ecore_main.c
index 3a6210d71b..045ccb10a2 100644
--- a/src/lib/ecore/ecore_main.c
+++ b/src/lib/ecore/ecore_main.c
@@ -803,6 +803,7 @@ detect_time_changes_start(void)
803 if (realtime_fd < 0) return; 803 if (realtime_fd < 0) return;
804 804
805 memset(&its, 0, sizeof(its)); 805 memset(&its, 0, sizeof(its));
806 its.it_value.tv_sec += 0xfffffff0; // end of time - 0xf
806 if (timerfd_settime(realtime_fd, 807 if (timerfd_settime(realtime_fd,
807 TFD_TIMER_ABSTIME | TFD_TIMER_CANCELON_SET, 808 TFD_TIMER_ABSTIME | TFD_TIMER_CANCELON_SET,
808 &its, NULL) < 0) 809 &its, NULL) < 0)