[ntp:questions] Re: ACTS - too many recvbufs allocated (40) (Correct the Version of ntp-dev)
Ronan Flood
ronan at noc.ulcc.ac.uk
Tue Feb 15 15:20:32 UTC 2005
mayer at gis.net wrote:
> > Without the "while (0 < (n = select(..." loop, do you run into trouble
> > with non-queueing signals? For example if two network packets arrive
> > near simultaneously for the same socket, is SIGIO/SIGPOLL raised only
> > once? If so, only one would be read if you don't re-do the select.
>
> There is a third loop that I hadn't mentioned in my message.
> It's not in input_handler(), it's in ntpmain() in ntpd.c and calls
> input_handler() as well as processing the received packets.
[...]
> The select() in ntpd.c gets called each time through the loop.
Only if HAVE_SIGNALED_IO is not defined; otherwise that loop just
calls wait_for_signal() ...
--
Ronan Flood <R.Flood at noc.ulcc.ac.uk>
working for but not speaking for
Network Services, University of London Computer Centre
(which means: don't bother ULCC if I've said something you don't like)
More information about the questions
mailing list