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



_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to