[asterisk-dev] Asterisk trunk on Mac OS/X 10.5

Russell Bryant russell at digium.com
Sat Mar 14 04:14:47 CDT 2009


On Mar 13, 2009, at 6:13 PM, Vadim Lebedev wrote:

>
> Le 11 mars 09 à 02:01, Russell Bryant a écrit :
>>
>
>> This is a known issue.  It appears to be a bug with poll() / select()
>> on OSX.  See the following bug report for details:
>>
>> http://bugs.digium.com/view.php?id=13404
>>
>
> I did some more debugging and see extremely strange stuff:
>
> main/poll.c is built and linked with the application,
> but when asterisk calls poll it goes straight to the original  
> syscall...

How did you go about determining that this was happening?  Did you add  
some logging into the internal poll() or something?  It seems quite  
strange that it would behave this way, indeed!

> I think what needs to be done is following:
> 1) replace all calls to poll(  by AST_POLL
> 2) on non Darwin platform AST_POLL will be defined as poll on darwin
> as ast_internal_poll
> 3) rename poll in asterisk/poll.c as ast_internal_poll

--
Russell Bryant
Digium, Inc. | Senior Software Engineer, Open Source Team Lead
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org







More information about the asterisk-dev mailing list