Re: FD_SETSIZE > 1024 and select() break on intel ?
Re: FD_SETSIZE > 1024 and select() break on intel ?
- Subject: Re: FD_SETSIZE > 1024 and select() break on intel ?
- From: Frederick Cheung <email@hidden>
- Date: Thu, 12 Feb 2009 15:04:51 +0000
On 12 Feb 2009, at 14:35, Nicolas Berloquin wrote:
Hi !
I'm currently working on making an existing app a universal binary.
I have noticed that my select() code that worked fine in ppc stops
working when running
on intel when I have more than 1024 active file descriptors (I'm
accessing disk files
(sometime LOTS of them) and tcpip sockets).
Sounds like you should read up on FD_SETSIZE in man select:
The behavior of these macros is undefined if a descriptor value is
less than zero or greater than or equal to
FD_SETSIZE
Fred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden