summaryrefslogtreecommitdiffstats
path: root/test/accum.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 04:35:55 (GMT)
committerGitHub <noreply@github.com>2023-06-28 04:35:55 (GMT)
commit7d1fdb2d277530eec6d1c8ff937634e7028892aa (patch)
treed5b832cbc566c7076b6926ce5e549bfe359fae1b /test/accum.c
parentbadc6098f726d644cbe6e7bcb27f58e5ba6d5d34 (diff)
downloadhdf5-7d1fdb2d277530eec6d1c8ff937634e7028892aa.zip
hdf5-7d1fdb2d277530eec6d1c8ff937634e7028892aa.tar.gz
hdf5-7d1fdb2d277530eec6d1c8ff937634e7028892aa.tar.bz2
Remove HD from fork/exec*/wait* (#3190)
These are not C99 but are hidden behind ifdefs and are highly unlikely to ever have non-POSIX equivalents.
Diffstat (limited to 'test/accum.c')
-rw-r--r--test/accum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/accum.c b/test/accum.c
index e85586a..80a8353 100644
--- a/test/accum.c
+++ b/test/accum.c
@@ -2258,7 +2258,7 @@ test_swmr_write_big(hbool_t newest_format)
int status; /* Status returned from child process */
/* Fork child process to verify that the data at [1024, 2014] does get written to disk */
- if ((pid = HDfork()) < 0) {
+ if ((pid = fork()) < 0) {
HDperror("fork");
FAIL_STACK_ERROR;
}
@@ -2271,13 +2271,13 @@ test_swmr_write_big(hbool_t newest_format)
char swmr_reader[] = SWMR_READER;
char *const new_argv[] = {swmr_reader, NULL};
/* Run the reader */
- status = HDexecv(SWMR_READER, new_argv);
+ status = execv(SWMR_READER, new_argv);
HDprintf("errno from execv = %s\n", HDstrerror(errno));
FAIL_STACK_ERROR;
} /* end if */
/* Parent process -- wait for the child process to complete */
- while (pid != HDwaitpid(pid, &status, 0))
+ while (pid != waitpid(pid, &status, 0))
/*void*/;
/* Check if child process terminates normally and its return value */