summaryrefslogtreecommitdiffstats
path: root/test/vfd_swmr_common.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2020-06-11 21:20:46 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-06-11 21:20:46 (GMT)
commit5cde36e2cdc73cc606bcb3fb863ff9116fb9f69e (patch)
tree87aace88855abe27508ff751a807098bb9509562 /test/vfd_swmr_common.c
parent4351ad6c4e8c5ac527e2ccd5f91b3b2b9ad60002 (diff)
downloadhdf5-5cde36e2cdc73cc606bcb3fb863ff9116fb9f69e.zip
hdf5-5cde36e2cdc73cc606bcb3fb863ff9116fb9f69e.tar.gz
hdf5-5cde36e2cdc73cc606bcb3fb863ff9116fb9f69e.tar.bz2
Delete code that has no effect: don't empty a mask set only to fill it
in the next expression.
Diffstat (limited to 'test/vfd_swmr_common.c')
-rw-r--r--test/vfd_swmr_common.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/vfd_swmr_common.c b/test/vfd_swmr_common.c
index fb93705..bb0f2a4 100644
--- a/test/vfd_swmr_common.c
+++ b/test/vfd_swmr_common.c
@@ -132,9 +132,8 @@ await_signal(hid_t fid)
sigset_t sleepset;
struct timespec tick = {.tv_sec = 0, .tv_nsec = 1000000000 / 100};
- if (sigemptyset(&sleepset) == -1 ||
- sigfillset(&sleepset) == -1) {
- err(EXIT_FAILURE, "%s.%d: could not initialize signal masks",
+ if (sigfillset(&sleepset) == -1) {
+ err(EXIT_FAILURE, "%s.%d: could not initialize signal mask",
__func__, __LINE__);
}