RFR: 7131399: Poll system call appears to be broken on Mac OS [macosx]
Alan Bateman
Alan.Bateman at oracle.com
Tue Jan 24 04:03:47 PST 2012
On 24/01/2012 11:47, Michael McMahon wrote:
>
> Damjan,
>
> We can only deal with a finite number of file descriptors already in
> this file, although the actual
> value can be set as high as required through setrlimit(). getFdEntry()
> checks that the fd number
> is within the particular limits and all I/O operations will return
> EBADF if they happen to be outside.
> This was the case even when poll() was used.
>
> - Michael
Another point is that this switching from poll to select is really just
a temporary band aid in order to get this going. Either poll gets fixed
or this code is changed to use kqueue. Without some initial band aid we
have test failures and a compatibility issue. This goes for other areas
of the code too and it will take a bit of time to clean up all areas.
-Alan
More information about the macosx-port-dev
mailing list