summaryrefslogtreecommitdiffstats
path: root/glusterfsd/src/glusterfsd.c
diff options
context:
space:
mode:
authorPranith Kumar K <pranithk@gluster.com>2010-09-22 22:42:51 +0000
committerVijay Bellur <vijay@dev.gluster.com>2010-09-22 22:28:59 -0700
commit26228ccddc85ab575e4508a03297af57713a5b28 (patch)
tree826f9b065d77a3754fa7150a2f8d810f8c68736d /glusterfsd/src/glusterfsd.c
parent22560c7faf95157c8ff4df9953d83147e153d3d7 (diff)
glusterfsd: destroy mgmt in cleanup
Signed-off-by: Pranith Kumar K <pranithk@gluster.com> Signed-off-by: Vijay Bellur <vijay@dev.gluster.com> BUG: 1517 (gluster volume stop - starts a new nfs server.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1517
Diffstat (limited to 'glusterfsd/src/glusterfsd.c')
-rw-r--r--glusterfsd/src/glusterfsd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/glusterfsd/src/glusterfsd.c b/glusterfsd/src/glusterfsd.c
index ab0f323e642..e383f96fd86 100644
--- a/glusterfsd/src/glusterfsd.c
+++ b/glusterfsd/src/glusterfsd.c
@@ -73,6 +73,7 @@
#include "syscall.h"
#include "call-stub.h"
#include <fnmatch.h>
+#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");