From 26228ccddc85ab575e4508a03297af57713a5b28 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Wed, 22 Sep 2010 22:42:51 +0000 Subject: glusterfsd: destroy mgmt in cleanup Signed-off-by: Pranith Kumar K Signed-off-by: Vijay Bellur BUG: 1517 (gluster volume stop - starts a new nfs server.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1517 --- glusterfsd/src/glusterfsd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'glusterfsd') diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c index ab0f323e6..e383f96fd 100644 --- a/glusterfsd/src/glusterfsd.c +++ b/glusterfsd/src/glusterfsd.c @@ -73,6 +73,7 @@ #include "syscall.h" #include "call-stub.h" #include +#include "rpc-clnt.h" #ifdef GF_DARWIN_HOST_OS #include "daemon.h" @@ -644,6 +645,8 @@ cleanup_and_exit (int signum) /* TODO: is this the right place? */ glusterfs_mgmt_pmap_signout (ctx); + if (ctx && ctx->mgmt) + rpc_clnt_destroy (ctx->mgmt); gf_log ("glusterfsd", GF_LOG_NORMAL, "shutting down"); -- cgit