summaryrefslogtreecommitdiff
path: root/py/python/Ice.py
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2012-10-15 13:52:10 -0700
committerMark Spruiell <mes@zeroc.com>2012-10-15 13:52:10 -0700
commiteb78cf7bfb7038af9063547a2183861205325796 (patch)
tree22f0ffcb06cd2e47468b0a1a59ffcd34eac30eae /py/python/Ice.py
parentMerge branch 'master' of ssh://git/home/git/ice (diff)
downloadice-eb78cf7bfb7038af9063547a2183861205325796.tar.bz2
ice-eb78cf7bfb7038af9063547a2183861205325796.tar.xz
ice-eb78cf7bfb7038af9063547a2183861205325796.zip
Fixes for stream API, PHP 5.4, Python 3.3
Diffstat (limited to 'py/python/Ice.py')
-rw-r--r--py/python/Ice.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/py/python/Ice.py b/py/python/Ice.py
index 85752e7a535..5790c64cd8a 100644
--- a/py/python/Ice.py
+++ b/py/python/Ice.py
@@ -53,6 +53,12 @@ if _dlopenflags >= 0:
sys.setdlopenflags(_dlopenflags)
#
+# Give the extension an opportunity to clean up before a graceful exit.
+#
+import atexit
+atexit.register(IcePy.cleanup)
+
+#
# Add some symbols to the Ice module.
#
ObjectPrx = IcePy.ObjectPrx