[olsr-dev] Question about implementation internals

Ignacio García Pérez (spam-protected)
Sun Jan 16 12:26:39 CET 2005


In my previous message I missed a quick and dirty hack that might be an
acceptable solution in some cases: use a "watch" thread that detects when
the system clock has beed adjusted, and then restart the whole daemon.

T = getsystemtime();
for (;;) {
	sleep(0.5)
	T2 = getsystemtime()
	if abs(T - T2) > whatever, reset daemon
	T = T2;
}



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.12 - Release Date: 14/01/2005




More information about the Olsr-dev mailing list