summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2010-06-07 14:08:05 -0400
committerSimo Sorce <ssorce@redhat.com>2010-06-07 17:25:48 -0400
commit5da783f4a79ee0a927f2483ae20b691074bb3007 (patch)
tree6da8069e95481055ca5c9d51548049305202e2ae /source3/rpc_server
parentf9fc4df0c0a6401d185b057c17d6b30ef549b3d0 (diff)
downloadsamba-5da783f4a79ee0a927f2483ae20b691074bb3007.tar.gz
samba-5da783f4a79ee0a927f2483ae20b691074bb3007.tar.bz2
samba-5da783f4a79ee0a927f2483ae20b691074bb3007.zip
s3:smbd add utility function to check if there are open pipes
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/rpc_ncacn_np_internal.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source3/rpc_server/rpc_ncacn_np_internal.c b/source3/rpc_server/rpc_ncacn_np_internal.c
index f5a3737844..18251c688e 100644
--- a/source3/rpc_server/rpc_ncacn_np_internal.c
+++ b/source3/rpc_server/rpc_ncacn_np_internal.c
@@ -68,6 +68,18 @@ static void free_pipe_rpc_context_internal( PIPE_RPC_FNS *list )
return;
}
+bool check_open_pipes(void)
+{
+ pipes_struct *p;
+
+ for (p = InternalPipes; p != NULL; p = p->next) {
+ if (num_pipe_handles(p) != 0) {
+ return true;
+ }
+ }
+ return false;
+}
+
/****************************************************************************
Close an rpc pipe.
****************************************************************************/