[ntp:questions] Re: "ntpdate" hanging !!

Brian Inglis Brian.Inglis at SystematicSW.Invalid
Mon Mar 7 17:53:03 UTC 2005


On Mon, 07 Mar 2005 15:36:31 +0530 in comp.protocols.time.ntp,
Srikanth K <srikanth.k at hp.com> wrote:

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

What happens when you run the shell command:
	/usr/sbin/ntpdate -q <timeserver-ip>
?

-- 
Thanks. Take care, Brian Inglis 	Calgary, Alberta, Canada

Brian.Inglis at CSi.com 	(Brian[dot]Inglis{at}SystematicSW[dot]ab[dot]ca)
    fake address		use address above to reply



More information about the questions mailing list