[asterisk-bugs] [Asterisk 0011928]: Asterisk 1.6-beta2 on Mac Intel extrange CLI operation

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Apr 16 15:46:19 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11928 
====================================================================== 
Reported By:                adriavidal
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11928
Category:                   Core-General
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.0-beta1 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-05-2008 13:57 CST
Last Modified:              04-16-2008 15:46 CDT
====================================================================== 
Summary:                    Asterisk 1.6-beta2 on Mac Intel extrange CLI
operation
Description: 
Compiled 1.6.-beta2 as root into my MacBook Intel.
When i run it as:

sudo asterisk 

then get into as:

sudo asterisk -vvr

any command i put into the cli is ignored, even if i try the autocomplet
function with tab something extrange is wrote into the console (see example
below)


If i run asterisk like root making asterisk -vvvvvvvvvc
everything seems ok.






====================================================================== 

---------------------------------------------------------------------- 
 putnopvut - 04-16-08 15:46  
---------------------------------------------------------------------- 
In 1.6, Mac OSX uses the system poll(2) call as opposed to a version of
poll() defined in the Asterisk source (which actually uses select(2)
instead). Googling reveals that apparently on Mac OSX, poll(2) is somewhat
buggy, and so instead of using it, perhaps the old method of disguising a
select(2) as poll(2) should instead be used. I will upload a patch which
does this.

For reference, I will note that this patch is similar to the patch posted
on http://bugs.digium.com/view.php?id=10202 and
http://bugs.digium.com/view.php?id=10342, however that patch is for 1.4 and is
intended to fix
a similar (and yet worse) problem with poll() use in Asterisk with Mac OSX. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-16-08 15:46  putnopvut      Note Added: 0085586                          
======================================================================




More information about the asterisk-bugs mailing list