From 90b1ca259706e7ae31c0ce7384a9e448a771f1b7 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 25 Oct 2005 12:49:24 +0000 Subject: 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) --- source3/rpc_server/srv_pipe_hnd.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'source3/rpc_server') 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); -- cgit