[ntp:questions] "ntpdate" hanging !!

mayer at gis.net mayer at gis.net
Mon Mar 7 18:04:15 UTC 2005

----- Original Message Follows -----
> Hello
> Actually i am running a big application in hp-ux 11.11 and the program
> which i sent in my previous mail is just a simulation of the problem
> in  my application. Actually, the application tries to block SIGALRM
> signal  and run "ntpdate" binary by calling "system" library call. In
> the actual  scenario,  the parent program blocks the SIGALRM signal
> and the "system"  function calls fork/vfork and execs the "ntpdate"
> binary.
> Eventually, the child process ( in this case: the ntpdate program )
> has  SIGALRM set in its signal mask. Therefore, SIGALRM is blocked for
> the  ntpdate program also.
> The following is the sytem call trace for the sample program:
> >>
> >>
> >>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.
> >>

You need to either allow SIGALRM when running ntpdate or build ntpdate
SIGALRM. ntpdate is using it. ntpdate (and ntpd) weren't meant to be run
within another program like this.


More information about the questions mailing list