Guillem Jover skrev:
It should indeed never be negative as you say. It doesn't hurt to move it closer to the actual select-call just in case someone messes up the code later. =)* interval is checked right before select. There was a corner case if maxinterval was negative.This one is actually not needed. maxinterval should never be negative, that should be catched already by the previous timercmp.
Andreas Påhlsson Xcerion