summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2003-06-20 15:17:22 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2003-06-20 15:17:22 (GMT)
commite34f6e8c9ef53157422f871b4f674946d02370d3 (patch)
treeb5be4f28f96eb08c950cf3799a1a3a405c842c33
parent381d6eb5fb98f8b6e30bac2238da81504ce22c47 (diff)
downloadhdf5-e34f6e8c9ef53157422f871b4f674946d02370d3.zip
hdf5-e34f6e8c9ef53157422f871b4f674946d02370d3.tar.gz
hdf5-e34f6e8c9ef53157422f871b4f674946d02370d3.tar.bz2
[svn-r7070] Purpose:
Code cleanup Description: Add another dependency to the API shutdown code to not shut down the ID management code until the other APIs which use IDs are shut down. Platforms tested: FreeBSD 4.8 (sleipnir) h5committest
-rw-r--r--src/H5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5.c b/src/H5.c
index e84aebf..72ea2a8 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -237,7 +237,9 @@ H5_term_library(void)
pending += DOWN(Z);
pending += DOWN(FD);
pending += DOWN(P);
- pending += DOWN(I);
+ /* Don't shut down the ID code until other APIs which use them are shut down */
+ if(pending==0)
+ pending += DOWN(I);
/* Don't shut down the free list code until _everything_ else is down */
if(pending==0)
pending += DOWN(FL);