[ntp:questions] "ntpdate" hanging !!

mayer at gis.net mayer at gis.net
Mon Mar 7 13:52:01 UTC 2005


----- Original Message Follows -----
> Hello ,
> 
> I notice a hang when i run the below mentioned program in a hp-ux
> 11.11  machine. The "ntpdate" binary which i am using in the program
> is taken  from "ntp-stable-4.2.0a-20040617" of the open ntp source.
> 
> /* program starts here */
> #include <signal.h>
> #include <unistd.h>
> 
> main()
> {
> 
> long oldmask, newmask;
> 
> oldmask = sigblock(0);
> sigblock(sigmask(SIGALRM));
> 
> system("/usr/sbin/ntpdate -q <timeserver-ip>");
> 
> sigsetmask(oldmask);
> 
> }
> /* program ends here */
> 
> 
> Is it a bug in "ntpdate" binary? If so, is there any fix available for
> it?

No idea. Where is it hanging? Have you tried this outside your program?
What's the purpose of the program? Have you run ntpdate under the
debugger?

Danny

> 
> 
> Thanks in Advance,
> -Srikanth K.
> 
> _______________________________________________
> questions mailing list
> questions at lists.ntp.isc.org
> https://lists.ntp.isc.org/mailman/listinfo/questions



More information about the questions mailing list