summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2005-10-25 12:49:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:10 -0500
commit90b1ca259706e7ae31c0ce7384a9e448a771f1b7 (patch)
tree863bac2a5f2409edecbf76f796775294f994a857
parentf0dab6ba200587dc7af6a041b24c181d70b4cb2b (diff)
downloadsamba-90b1ca259706e7ae31c0ce7384a9e448a771f1b7.tar.gz
samba-90b1ca259706e7ae31c0ce7384a9e448a771f1b7.tar.bz2
samba-90b1ca259706e7ae31c0ce7384a9e448a771f1b7.zip
r11292: Missed merge from Samba 2.2 many years ago....
Don't count open pipes in the num_files_open on a connection. conn_idle_all() handles this by looking for open rpc handles If there are no open handles, we can close the IPC$ share. (This used to be commit 747fba4dbf06c42495c430cd78c1cded3445f821)
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index 205223190b..6077faed16 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -337,9 +337,6 @@ static void *make_internal_rpc_pipe_p(char *pipe_name,
p->conn = conn;
- /* Ensure the connection isn't idled whilst this pipe is open. */
- p->conn->num_files_open++;
-
p->vuid = vuid;
p->endian = RPC_LITTLE_ENDIAN;
@@ -1156,8 +1153,6 @@ static BOOL close_internal_rpc_pipe_hnd(void *np_conn)
DLIST_REMOVE(InternalPipes, p);
- p->conn->num_files_open--;
-
ZERO_STRUCTP(p);
SAFE_FREE(p);