]> git.samba.org - abartlet/samba.git/.git/commitdiff
r11292: Missed merge from Samba 2.2 many years ago....
authorGerald Carter <jerry@samba.org>
Tue, 25 Oct 2005 12:49:24 +0000 (12:49 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:10 +0000 (11:05 -0500)
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

index 205223190b442191c854874d0ccf1c814b7d781b..6077faed16438cb7fb8f7d07b49b62501f4f35f7 100644 (file)
@@ -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);