[Orca-dev] Re: Orcallator.se timestamp patch bug and patch

Blair Zajac blair at orcaware.com
Sun Jul 18 12:59:30 PDT 2004


John Garner wrote:

> All,
> 
> I noticed that after the timestamp patch, orcallator would start to 
> freeze up after a while. `truss` showed that it was simply sleeping, but 
> for a very long time.
> 
> Inserting a few fprintf's showed that the time_to_sleep variable would 
> occasionally get set to some huge number... The type of number that you 
> get when you take a negative int and cast it to an unsigned long int :-) 
> (this can occur if xntpd sets the clock forward or se gets hung up for a 
> brief moment by the scheduler)
> 
> The fix in my case was to simply not declare time_to_sleep as an 
> unsigned long (we should never be sleeping more than 2 billion seconds 
> anyway :-)
> 
> The unified diff follows
> 
> --john

Thanks John.  Applied to the Orca Subversion tree in revision 376.

Regards,
Blair

-- 
Blair Zajac <blair at orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/



More information about the Orca-dev mailing list