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)
This commit is contained in:
Carsten Haitzler 2013-10-22 08:11:00 +01:00
parent 208c424238
commit 7736a96c4f
1 changed files with 1 additions and 0 deletions

View File

@ -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)