Skip to content

Commit

Permalink
linux/: use TEMP_FAILURE_RETRY with some restartable funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
robertswiecki committed Apr 17, 2019
1 parent 9b40360 commit 9340b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ static void arch_traceExitSaveData(run_t* run, pid_t pid) {
}
}

int fd = open(run->crashFileName, O_WRONLY | O_EXCL | O_CREAT, 0600);
int fd = TEMP_FAILURE_RETRY(open(run->crashFileName, O_WRONLY | O_EXCL | O_CREAT, 0600));
if (fd == -1 && errno == EEXIST) {
LOG_I("It seems that '%s' already exists, skipping", run->crashFileName);
return;
Expand Down

0 comments on commit 9340b45

Please sign in to comment.