Actually, this patch was broken.  It didn't pass the test.  You have to
modify the condition variables to use monotonic time, or condwait will
be broken.

I've completely rewritten this patch, but it was an important change and
needed to be done.  Changes are now in git.

-corey

On 10/10/2013 05:33 AM, Lashenko, George wrote:
> Dear Developers,
>
> I've encountered a problem in OpenIPMI something I see as a bug, the issue is 
> that the library uses gettimeofday as its source for creating timeouts
>
> this can cause a problem if some action is registered and the date of the 
> machine is changed (backwards) this way the selector will take much longer
>
> to call the action to happen. I'm sending you a patch that I use in my 
> system, it speaks for itself, please take a look and tell me what you think 
> (basicly
>
> I changed the the use of gettimeofday --> clock(MONOTONIC_CLOCK))
>
> Thanks a lot,
> George Lashenko 
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
>
>
> _______________________________________________
> Openipmi-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/openipmi-developer


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to