From: Gary Wright Date: 2007-11-07T05:22:48+09:00 Subject: Re: threaded and forked select with timeout is impacted by syste On Nov 6, 2007, at 9:25 AM, Robert Williams wrote: > If the timeout is set for a duration of time and the system time is > moved back one hour the duration is increased 1 > hour. If the time is moved forward 1 hour the duration is > shortened one > hour or fires instantly once the duration has > been exceeded. > I'm not sure why the Ruby version fails and the C version works, but it is generally considered a really big mistake to alter a system clock in this way. Are you adjusting for daylight savings? The underlying clock should be in GMT and then daylight savings is simply handled by changing the way the GMT time is displayed. That is to say, the underlying clock doesn't change at all for daylight savings. If you really have to change the underlying system clock, I would do it in single user mode or at least after stopping any daemons or long running applications. Gary Wright