[asterisk-dev] About implementation of poll() in poll.c
SteveK
stevek at stevek.com
Fri Jul 21 07:53:55 MST 2006
On Jul 21, 2006, at 10:40 AM, Pranav Peshwe wrote:
> Hello,
> In chan_sip.c , ast_io_wait() uses the poll() function
> defined in poll.c. poll() internally uses select() for fd
> multiplexing.
> Why is poll() implemented using select() in asterisk inspite of
> being present as a
> standard function already i.e POLL(2) - on linux atleast ? The
> semantics of the
> implemented poll() function look similar to POLL(2).
> Is there any specific reason ? like portability problems for poll
> () ? or is the
> implementation in any way different in functionality from POLL(2) ?
>
It seems the emulation is only used when the underlying system
doesn't support poll() itself.
-SteveK
More information about the asterisk-dev
mailing list