[Bug 1298] POSIX timer_settime incorrectly reject absolute timeouts in past.

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Thu Dec 5 18:27:25 UTC 2013


https://www.rtems.org/bugzilla/show_bug.cgi?id=1298

--- Comment #2 from Daniel Ramirez <javamonn at gmail.com> 2013-12-05 12:27:25 CST ---
Created attachment 1535
  --> https://www.rtems.org/bugzilla/attachment.cgi?id=1535
Patch to fix bug and update test cases

Solved by setting a flag if the system clock is greater than the timeout passed
to timer_settime. If this flag is set, the watchdog_interval to 0 ticks, which
allows for the function call to succeed and effectively causes the timer to
expire immediately.

I changed the psxtimer02 test to check that timer_settime - time in past
suceeds instead of failing with EINVAL. psxtimer01 test still works.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list