From be2bf0c775ecc56cc40e561f58b28fda88aaa282 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Tue, 25 Oct 2005 12:49:24 +0000 Subject: [PATCH] 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. --- source/rpc_server/srv_pipe_hnd.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/source/rpc_server/srv_pipe_hnd.c b/source/rpc_server/srv_pipe_hnd.c index 205223190b4..6077faed164 100644 --- a/source/rpc_server/srv_pipe_hnd.c +++ b/source/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); -- 2.11.4.GIT