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

Anil Gunturu anil_gunturu at yahoo.com
Thu Dec 1 21:17:15 UTC 2005

SNTP code uses alarms for timing out from "recvfrom" call. Beacuse the way setjmp code is it doesn't timeout after the first attemp. Try this patch on socket.c
< static jmp_buf jump_buffer;
> static sigjmp_buf sigjump_buffer;
<     longjmp(jump_buffer,1);
>     siglongjmp(sigjump_buffer,1);
<         if (setjmp(jump_buffer)) {
>         if (sigsetjmp(sigjump_buffer, 1)) {

Christopher Nelson <cnelson at nycap.rr.com> wrote:
  Harlan Stenn wrote:
> Have you seen/tried the '-d' option to sntp?

Now I have:

# sntp -V -P no -r
sntp options: a=2 v=2 e=0.100 E=5.000 P=2147483647.000
d=15 c=5 x=0 op=1 l=/etc/sntp.pid f=
sntp: receive timed out after 3 seconds

and then it hangs until I Ctrl-C it. And every value I try for d gives
me a range error related to -e and -E. 

> ...

questions mailing list
questions at lists.ntp.isc.org

 Yahoo! Personals
 Let fate take it's course directly to your email.
 See who's waiting for you Yahoo! Personals

More information about the questions mailing list