Skip to content

Commit

Permalink
reworked open
Browse files Browse the repository at this point in the history
  • Loading branch information
brtnfld committed Dec 6, 2024
1 parent 21db711 commit f52ff4e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/h5_async_vol.c
Original file line number Diff line number Diff line change
Expand Up @@ -1430,16 +1430,7 @@ async_instance_init(int backing_thread_count)
if (ASYNC_DBG_MSG_RANK == -1) {
char fname[128];
sprintf(fname, "async.log.%d", aid->mpi_rank);
int fd = open(fname, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR);
if (fd < 0) {
fprintf(fout_g, " [ASYNC VOL ERROR] with opening %s\n", fname);
free(progress_xstreams);
free(progress_scheds);
free(aid);
hg_ret = -1;
goto done;
}
fout_g = fdopen(fd, "w");
fout_g = fopen(fname, "w");
if (fout_g == NULL) {
fprintf(fout_g, " [ASYNC VOL ERROR] with opening %s\n", fname);
close(fd);
Expand Down

0 comments on commit f52ff4e

Please sign in to comment.