samba-technical@lists.samba.org
[Top] [All Lists]

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

Subject: [patch] More precise usage of the max fd argument to select() call
From: Lars MÜLLER
Date: Wed, 17 Nov 2004 20:30:30 +0100
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
<Prev in Thread] Current Thread [Next in Thread>
  • [patch] More precise usage of the max fd argument to select() call, Lars MÜLLER <=