[haiku-commits] Re: r43050 - haiku/trunk/src/add-ons/mail_daemon/outbound_protocols/smtp

  • From: "Adrien Destugues" <pulkomandy@xxxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Tue, 01 Nov 2011 16:26:04 +0100

> That doesn't look right. The first select() parameter specifies the 
> range of FDs to consider, not the number of FDs to actually select. 
Given that the preceding code does a FD_ZERO(&fds) followed by a 
FD_SET(fSocket, &fds), the minimum correct number to pass in this case 
would be fSocket + 1. More generically FD_SETSIZE does always work.

Yes, that was fixed in the next commit. Sorry for the noise.

Other related posts: