diff options
author | Robert Swiecki <robert@swiecki.net> | 2019-04-17 22:02:53 +0200 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2019-04-17 22:02:53 +0200 |
commit | af7a92b9a644d1cc75b415351d9cb2a52eadefcf (patch) | |
tree | fe5854729e0a4524df7242d2a94106ff91f863f6 /report.c | |
parent | 251ee7cf631b31ef92b2426f84e6a44da1748fc8 (diff) | |
download | honggfuzz-af7a92b9a644d1cc75b415351d9cb2a52eadefcf.tar.gz |
subproc: use TEMP_FAILURE_RETRY with some restartable funcs
Diffstat (limited to 'report.c')
-rw-r--r-- | report.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -23,6 +23,7 @@ #include "report.h" +#include <errno.h> #include <fcntl.h> #include <inttypes.h> #include <stdio.h> @@ -79,7 +80,8 @@ void report_Report(run_t* run) { snprintf(reportFName, sizeof(reportFName), "%s", run->global->cfg.reportFile); } - reportFD = open(reportFName, O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, 0644); + reportFD = + TEMP_FAILURE_RETRY(open(reportFName, O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, 0644)); if (reportFD == -1) { PLOG_F("Couldn't open('%s') for writing", reportFName); } |