[ntp:questions] Re: sntp hangs if network not available

Christopher Nelson cnelson at nycap.rr.com
Fri Dec 2 13:46:58 UTC 2005

Anil Gunturu wrote:
> Waiting forever until ^C was because of what I described in earlier mail. Yeap
> running ntpd for an embedded application is an overkill. Right now there is no
> way in sntp to timeout in sub-second intervals. sntp uses "alram" call to signal
> timeout and the granuality of this call is in seconds. We need to change the
> code a bit to meet your requirements.

Even 1 second would be a big improvement over the 3 seconds that is the
best I can achieve now.  Maybe have waiting default to -d/-c but
provide a -t (timeout) parameter to override that with -t having a
lower bound of 1.


More information about the questions mailing list