search for: num_files_open

Displaying 2 results from an estimated 2 matches for "num_files_open".

2005 Nov 02
1
smbd processes never go away
I am having a problem with Samba 3.0.20b runninn on Fedora core 4, with a 2.6.11-1.1369_FC4smp kernel. Each time I open a connection a new smbd process is forked. That is fine, but then that process never goes away, even after the client has disconnected. Even though there are only a few clients who make an smb connection to the server in question, dozens and dozens of smbd processes are
2000 May 10
0
patche for samba-2.0.7/source/smbd/conn.c
...ction_struct *conn, *next; + BOOL allidle = True; + int i, num_passed; - for (conn=Connections;conn;conn=next) { - next=conn->next; - /* close dirptrs on connections that are idle */ - if ((t-conn->lastused) > DPTR_IDLE_TIMEOUT) - dptr_idlecnum(conn); - - if (conn->num_files_open > 0 || - (t-conn->lastused)<deadtime) - allidle = False; - } + for ( num_passed = 0, i = 0; i < MAX_CONNECTIONS; i++ ) { + if ( cth.Connections[i] ) { + connection_struct *conn = cth.Connections[i]; + + /* close dirptrs on connections that are idl...