Skip to content

Commit

Permalink
Call Rados.shutdown() explicitly before exit
Browse files Browse the repository at this point in the history
This is mostly a demonstration of good behavior, as the resources will
be reclaimed on exit anyway.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
  • Loading branch information
dmick committed Dec 10, 2014
1 parent 5ba9b8f commit 20e3fb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ceph.in
Original file line number Diff line number Diff line change
Expand Up @@ -877,4 +877,7 @@ def main():
return 0

if __name__ == '__main__':
sys.exit(main())
retval = main()
# shutdown explicitly; Rados() does not
cluster_handle.shutdown()
sys.exit(retval)

0 comments on commit 20e3fb9

Please sign in to comment.