diff options
author | songyulu <songyulu@jelly.ad.hdfgroup.org> | 2021-03-05 15:44:36 (GMT) |
---|---|---|
committer | songyulu <songyulu@jelly.ad.hdfgroup.org> | 2021-03-05 15:44:36 (GMT) |
commit | 8e14c386aaa9e09dd9bc7d2b28995ff73b1a9903 (patch) | |
tree | 501665e5e7f3d62cd3b49e807c32c4fa54e13c58 /test/testvfdswmr.sh.in | |
parent | 511b940da6fa60e163f6f94e423f6cbd2879468d (diff) | |
download | hdf5-8e14c386aaa9e09dd9bc7d2b28995ff73b1a9903.zip hdf5-8e14c386aaa9e09dd9bc7d2b28995ff73b1a9903.tar.gz hdf5-8e14c386aaa9e09dd9bc7d2b28995ff73b1a9903.tar.bz2 |
Changed the signal handling to named pipes for communication between the writer and reader, mainly in the zoo test as a starting point.
Diffstat (limited to 'test/testvfdswmr.sh.in')
-rw-r--r-- | test/testvfdswmr.sh.in | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/testvfdswmr.sh.in b/test/testvfdswmr.sh.in index a66ddf4..97c13cf 100644 --- a/test/testvfdswmr.sh.in +++ b/test/testvfdswmr.sh.in @@ -547,16 +547,14 @@ done # read and written by VFD SWMR. # if [ ${do_zoo:-no} = yes ]; then - [ -e ./fifo ] && rm -f ./fifo - mkfifo -m 0600 ./fifo rm -f ./shared_tick_num echo launch vfd_swmr_zoo_writer - STDIN_PATH="./fifo" catch_out_err_and_rc vfd_swmr_zoo_writer \ - ../vfd_swmr_zoo_writer -m 1000 -q & + catch_out_err_and_rc vfd_swmr_zoo_writer \ + ../vfd_swmr_zoo_writer -l 5 -m 1000 -q & pid_writer=$! - STDOUT_PATH="./fifo" catch_out_err_and_rc vfd_swmr_zoo_reader \ - ../vfd_swmr_zoo_reader -q -W & + catch_out_err_and_rc vfd_swmr_zoo_reader \ + ../vfd_swmr_zoo_reader -l 10 -q -W & pid_reader=$! # Wait for the reader to finish before signalling the @@ -564,7 +562,6 @@ if [ ${do_zoo:-no} = yes ]; then # reader will find the shadow file when it opens # the .h5 file. wait $pid_reader - kill -USR1 $(cat vfd_swmr_zoo_writer.pid) wait $pid_writer # Collect exit code of the reader @@ -580,7 +577,6 @@ if [ ${do_zoo:-no} = yes ]; then fi # Clean up output files - rm -f ./fifo rm -f vfd_swmr_zoo_writer.{out,rc} rm -f vfd_swmr_zoo_reader.*.{out,rc} fi |