From: Dan Mick Date: Wed, 10 Dec 2014 21:19:53 +0000 (-0800) Subject: Call Rados.shutdown() explicitly before exit X-Git-Tag: v0.91~52^2~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F3119%2Fhead;p=ceph.git Call Rados.shutdown() explicitly before exit This is mostly a demonstration of good behavior, as the resources will be reclaimed on exit anyway. Signed-off-by: Dan Mick --- diff --git a/src/ceph.in b/src/ceph.in index 654148fba391..b419a280a955 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -877,4 +877,8 @@ def main(): return 0 if __name__ == '__main__': - sys.exit(main()) + retval = main() + # shutdown explicitly; Rados() does not + if cluster_handle: + cluster_handle.shutdown() + sys.exit(retval)