[olsr-dev] strange using of times() ?

Thomas Capricelli (spam-protected)
Wed Dec 28 22:32:09 CET 2005



On Wednesday 28 December 2005 17:54, Bernd Petrovitsch wrote:
> On Wed, 2005-12-28 at 00:21 +0100, Thomas Capricelli wrote:
> [...]
>
> > i had the pb of olsrd refusing to start. The error being in
> > src/scheduler.c,
>
> Which version exactly?

	oh, 0.4.9, of course. sorry :)

> > around line #120
> > times() returns an error, with errno=2, ("no such file or directory")
>
> Depending on the exact version,
> -) return values of sys-calls are compared "< 0" instead of "==
>    -1" (yes, I will send patches tro fix them if 0.4.10 is out).
>    And yes, there were bug reports of this.
> -) errno might have been overwritten on errors. I already sent patches
>    but I don't know if I got all cases and if all of them are fixed.
>    (And I'm also waiting for 0.4.10).

	yes, the code says < 0  : 
	..   if((end_of_loop = times(&tms_buf)) < 0) ...

	So i can consider that there's actually a problem and that the pb is still 
here in 0.4.10 ?

thanx for your answer,
Thomas




More information about the Olsr-dev mailing list