summaryrefslogtreecommitdiffstats
path: root/src/H5.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5.c')
-rw-r--r--src/H5.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/H5.c b/src/H5.c
index adbd3a7..dca10f9 100644
--- a/src/H5.c
+++ b/src/H5.c
@@ -366,6 +366,11 @@ H5_term_library(void)
* down before "lower" level components that they might rely on. -QAK
*/
+ /* Close the event sets first, so that all asynchronous operations
+ * complete before anything else attempts to shut down.
+ */
+ pending += DOWN(ES);
+
/* Close down the user-facing interfaces, after the event sets */
if (pending == 0) {
/* Close the interfaces dependent on others */