On Sat, 2008-08-02 at 22:07 -0400, Greg A. Woods; Planix, Inc. wrote:
I'm not sure why you want to set a timer for the whole lease.
Why not set a regular timer and decrement the remaining lease TTL on
that interval?
The extra CPU cycles through such a loop, even counting all the
kernel
time for the system call transitions, is inevitably negligible over
such periods as DAYS.
For the duration of the lease we need to monitor a signal pipe and the
fd for link carrier messages. As select,poll and friends have timeouts
it makes sense to use them instead of calls like setitimer.