[patch] More precise usage of the max fd argument to select() call

Lars MÜLLER lmuelle at SuSE.de
Wed Nov 17 19:30:30 GMT 2004


Hello,

my colleague Sebastian Krahmer poked with the debugger into smbd and
asked me why we always use a fixed 1024 as frist arg to sys_select() in
source/smbd/server.c.

As I didn't know why we do it I've tried to calulate the highest
numbered descriptor and use this value for the select() call.

Or do we have a reason to use FD_SETSIZE?

See https://bugzilla.samba.org/attachment.cgi?id=781&action=view for the
proposed changes.

Lars
-- 
Lars MÜLLER [ˈlaː(r)z ˈmʏlɐ]
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20041117/6e1651f8/attachment.bin


More information about the samba-technical mailing list