[Linux-ha-dev] heartbeat fails every 497 days on 32 bit linux

Wolfgang Dumhs wolfgang.dumhs at gmx.at
Wed Aug 16 15:53:55 MDT 2006


Alan Robertson wrote:
> 
> OK.
> 
> There are several places in the code where we use times(2).  I've taken
> your ideas and created a new patch for the 2.x CVS(HEAD) branch which I
> think covers them all.
> 
> I've attached it here.
> 
> Wolfgang:  Could you test this and see if it works during wraparound?
> 
> It's not quite the same as yours, but avoids casting -1 to an unsigned.
>  I think the effect should be the same.
> 
> Please let me/us all know.
> 
Hi,

I have now testet the patch on my test systems (SuSE Linux 9.1 / Kernel 
2.6.5 / glibc 2.3.3 and SuSE Linux 9.3 / Kernel 2.6.13 / glibc 2.3.4) 
and it works like expectet: no problems during wrap of times(2), but 
some nice messages "time_longclock: clock_t wrapped around (uptime)".

The only thing I had to change to be able to compile was line 79 in 
lib/stonith/expect.c from
int             save_errno;
to
int             save_errno = errno;

--
Best regards,

Wolfgang Dumhs


More information about the Linux-HA-Dev mailing list