edgarigl/tlmu — pull request #3 by yTakatsukasa (2012-10-01 04:21:11+00:00)
Title: Fixed:timer_settime failes on 32bit linux

Hi Edgar,
I hit an error on 32bit linux.
Calling timer_settime() in tlmu_hosttimer_start(int64_t) sometimes emits an error.
It is because timeout.it_interval.tv_sec is negative value.
time_t is 32bit signed integer on 32bit platform.

When no timers are found in tlmu_timers_run(), it returns INT64_MAX.
And it cause overflow in timer_settime() and tv_sec is then negative.
I changed tlmu_timers_run() to set "next_deadline" 1sec future if notimers are found.
I am not sure 1sec(default_next_timer_check_ns) is optimal or not.
Please fix the value if you find better value.

BTW the previous pull request looks still open on github.com.

Regards, Yutestu.