On Thu, Sep 08, 2005 at 12:27:06PM -0400, Daniel Kristjansson wrote:
> On Thu, 2005-09-08 at 17:22 +0100, Stuart Auchterlonie wrote:
> > Looks like there is a small problem with the way you have
> > set the timeout for the select loop.
> > struct timeval select_timeout = { 0, (timeout_ms) % 1000 };
> 
> You're right of course :) I've fixed it in svn.
> 

Still not correct in 7211.
You should stick with passing in 5000ms and do

struct timeval select_timeout = { timeout_ms / 1000,
        (timeout_ms % 1000) * 1000

That way 5000ms = 5s + 0usec, 500ms = 0s+500000usec


Stuart

_______________________________________________
mythtv-dev mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Reply via email to