diff options
author | Robert Swiecki <robert@swiecki.net> | 2019-04-17 22:03:58 +0200 |
---|---|---|
committer | Robert Swiecki <robert@swiecki.net> | 2019-04-17 22:03:58 +0200 |
commit | 9b40360a78b69bf8e5ec287463609cfad6dc2592 (patch) | |
tree | a404cecafd272ca592873ae4c3e61cadca02061a | |
parent | af7a92b9a644d1cc75b415351d9cb2a52eadefcf (diff) | |
download | honggfuzz-9b40360a78b69bf8e5ec287463609cfad6dc2592.tar.gz |
libhfcommon: use TEMP_FAILURE_RETRY with some restartable funcs
-rw-r--r-- | libhfcommon/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libhfcommon/util.c b/libhfcommon/util.c index 77d53672..3d2e9a8d 100644 --- a/libhfcommon/util.c +++ b/libhfcommon/util.c @@ -206,13 +206,13 @@ void util_closeStdio(bool close_stdin, bool close_stdout, bool close_stderr) { } if (close_stdin) { - dup2(fd, STDIN_FILENO); + TEMP_FAILURE_RETRY(dup2(fd, STDIN_FILENO)); } if (close_stdout) { - dup2(fd, STDOUT_FILENO); + TEMP_FAILURE_RETRY(dup2(fd, STDOUT_FILENO)); } if (close_stderr) { - dup2(fd, STDERR_FILENO); + TEMP_FAILURE_RETRY(dup2(fd, STDERR_FILENO)); } if (fd > STDERR_FILENO) { |