summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-04-23 02:16:48 +0000
committerJeremy Allison <jra@samba.org>2002-04-23 02:16:48 +0000
commit569fa9b3dd31b72b35e224ffffe65715a858b7c3 (patch)
treee61974c0ddf16aea4d53de57abdea5ac83647df9 /source3
parent4df4aca784db3aef5395a2aed311823ba5ffe97b (diff)
downloadsamba-569fa9b3dd31b72b35e224ffffe65715a858b7c3.tar.gz
samba-569fa9b3dd31b72b35e224ffffe65715a858b7c3.tar.bz2
samba-569fa9b3dd31b72b35e224ffffe65715a858b7c3.zip
Fix for a bug Jerry found with printing where a smbd connection may
be idled even with an open pipe. Jeremy. (This used to be commit 3a93c5daeca3edd4f319199c8a6068d25cb6750e)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_pipe_hnd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c
index 44dd5fac65..4b20ee5558 100644
--- a/source3/rpc_server/srv_pipe_hnd.c
+++ b/source3/rpc_server/srv_pipe_hnd.c
@@ -240,6 +240,9 @@ smb_np_struct *open_rpc_pipe_p(char *pipe_name,
for (p_it = Pipes; p_it; p_it = p_it->next)
DEBUG(5,("open pipes: name %s pnum=%x\n", p_it->name, p_it->pnum));
+ /* Ensure the connection isn't idled whilst this pipe is open. */
+ conn->num_files_open++;
+
return chain_p;
}
@@ -1055,7 +1058,9 @@ BOOL close_rpc_pipe_hnd(smb_np_struct *p)
ZERO_STRUCTP(p);
SAFE_FREE(p);
-
+
+ conn->num_files_open--;
+
return True;
}