From 319f9c9352bfd1b95bd685500922e6cee2199b34 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Wed, 10 Dec 2014 13:19:53 -0800 Subject: [PATCH] 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 (cherry picked from commit b038e8fbf9103cc42a4cde734b3ee601af6019ea) --- src/ceph.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ceph.in b/src/ceph.in index 4cc5c42470d2b..0701e292f59ff 100755 --- a/src/ceph.in +++ b/src/ceph.in @@ -856,4 +856,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) -- 2.39.5