[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
   
  -Anil
   
  37c37
< static jmp_buf jump_buffer;
---
> static sigjmp_buf sigjump_buffer;
40c40
<     longjmp(jump_buffer,1);
---
>     siglongjmp(sigjump_buffer,1);
299c299
<         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 11.128.0.1
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= 11.128.0.1
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
https://lists.ntp.isc.org/mailman/listinfo/questions
  


		
---------------------------------
 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