RFR: 7131399: Poll system call appears to be broken on Mac OS	[macosx]
    Alan Bateman 
    Alan.Bateman at oracle.com
       
    Mon Jan 23 13:30:32 PST 2012
    
    
  
On 23/01/2012 17:09, Michael McMahon wrote:
> Can I get the following change reviewed please?
>
> http://cr.openjdk.java.net/~michaelm/7131399/webrev.1/
>
> The problem is that poll(2) doesn't seem to work in a specific edge 
> case tested by JCK,
> namely, when a zero length UDP message is sent on a DatagramSocket.  
> The problem is only
> detected on timed reads, ie. normal blocking reads work fine.
>
> The fix is to make the NET_Timeout() function use select() instead of 
> poll().
>
> Thanks,
> Michael.
>
The first argument to select is s+1, shouldn't is be 1?
-alan
    
    
More information about the macosx-port-dev
mailing list