| 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> |
|---|---|---|
| ||
| Previous by Date: | [patch] Multiple daemons on one machine with the same PIDDIR, Lars MÜLLER |
|---|---|
| Next by Date: | Re: svn commit: samba r3813 - in trunk/source/smbd: ., Volker Lendecke |
| Previous by Thread: | [patch] Multiple daemons on one machine with the same PIDDIR, Lars MÜLLER |
| Next by Thread: | Re: svn commit: samba r3813 - in trunk/source/smbd: ., Volker Lendecke |
| Indexes: | [Date] [Thread] [Top] [All Lists] |