diff options
author | Pranith Kumar K <pranithk@gluster.com> | 2010-09-22 22:42:51 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-09-22 22:28:59 -0700 |
commit | 26228ccddc85ab575e4508a03297af57713a5b28 (patch) | |
tree | 826f9b065d77a3754fa7150a2f8d810f8c68736d | |
parent | 22560c7faf95157c8ff4df9953d83147e153d3d7 (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
-rw-r--r-- | glusterfsd/src/glusterfsd.c | 3 |
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"); |