summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-03-18 20:58:02 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:31:56 (GMT)
commit4cfafa10d55c3a1067174d152c8546bfebae03c3 (patch)
treea6f3de34b12f07b063e7e34776dabfd43015a5d8 /src/H5.c
parentc7fd077ffb7fff2fb21fa20acca54622ffa03617 (diff)
downloadhdf5-4cfafa10d55c3a1067174d152c8546bfebae03c3.zip
hdf5-4cfafa10d55c3a1067174d152c8546bfebae03c3.tar.gz
hdf5-4cfafa10d55c3a1067174d152c8546bfebae03c3.tar.bz2
Fix shutdown errors when using the HDF5_VOL_CONNECTOR environment
variable to set a dynamically loaded plugin as the default VOL connector. Fixes HDFFV-11057
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5.c b/src/H5.c
index 401bb15..aff5f3c 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -354,7 +354,9 @@ H5_term_library(void)
pending += DOWN(Z);
pending += DOWN(FD);
pending += DOWN(VL);
- pending += DOWN(PL);
+ /* Don't shut down the plugin code until all "pluggable" interfaces (Z, FD, PL) are shut down */
+ if(pending == 0)
+ pending += DOWN(PL);
/* Don't shut down the error code until other APIs which use it are shut down */
if(pending == 0)
pending += DOWN(E);