summaryrefslogtreecommitdiffstats
path: root/test/testvfdswmr.sh.in
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-10-23 15:47:14 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-10-23 15:47:14 (GMT)
commit0ea6e75d9ff6a62b5e5590dec84df88b781a6e85 (patch)
treed1dc52ab5c87ca799488348807c7457fdab291db /test/testvfdswmr.sh.in
parente84a416ad85836cdedbe947250f409b6e2c8fbea (diff)
downloadhdf5-0ea6e75d9ff6a62b5e5590dec84df88b781a6e85.zip
hdf5-0ea6e75d9ff6a62b5e5590dec84df88b781a6e85.tar.gz
hdf5-0ea6e75d9ff6a62b5e5590dec84df88b781a6e85.tar.bz2
VFD SWMR sparse readers failed to open the .h5 file because the sparse writer
had finished its work and closed the .h5 file, thus removing the shadow file. Make the sparse writer wait to close the .h5 file for a signal from testvfdswmr.sh. In testvfdswmr.sh, send the signal when the readers have all finished.
Diffstat (limited to 'test/testvfdswmr.sh.in')
-rw-r--r--test/testvfdswmr.sh.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/testvfdswmr.sh.in b/test/testvfdswmr.sh.in
index 6cb2960..39f6931 100644
--- a/test/testvfdswmr.sh.in
+++ b/test/testvfdswmr.sh.in
@@ -464,7 +464,9 @@ fi
$IFDEBUG ps
# Wait for the readers and the writer to finish.
- wait
+ wait $pid_readers
+ kill -USR1 $pid_writer
+ wait $pid_writer
# Collect exit codes of the readers
n=0