aboutsummaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-05-15 16:19:20 -0700
committerElliott Hughes <enh@google.com>2015-05-15 18:09:33 -0700
commit1857a7f57929a3bb4c831199b702059b259b0e3e (patch)
tree267079724d435db3fe1d97d61fd56a29511af0c1 /updater
parentdf52e1e119804cc5e7d0b7f77a7d1bf42b2da9dc (diff)
downloadbootable_recovery-1857a7f57929a3bb4c831199b702059b259b0e3e.zip
bootable_recovery-1857a7f57929a3bb4c831199b702059b259b0e3e.tar.gz
bootable_recovery-1857a7f57929a3bb4c831199b702059b259b0e3e.tar.bz2
Don't use TEMP_FAILURE_RETRY on close in recovery.
Bug: http://b/20501816 Change-Id: I35efcd8dcec7a6492ba70602d380d9980cdda31f (cherry picked from commit b47afedb42866e85b76822736d915afd371ef5f0)
Diffstat (limited to 'updater')
-rw-r--r--updater/blockimg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/updater/blockimg.c b/updater/blockimg.c
index 532e7b8..a0e9aec 100644
--- a/updater/blockimg.c
+++ b/updater/blockimg.c
@@ -694,7 +694,7 @@ static int WriteStash(const char* base, const char* id, int blocks, uint8_t* buf
wsout:
if (fd != -1) {
- TEMP_FAILURE_RETRY(close(fd));
+ close(fd);
}
if (fn) {
@@ -1732,7 +1732,7 @@ pbiudone:
if (fsync(params.fd) == -1) {
fprintf(stderr, "fsync failed: %s\n", strerror(errno));
}
- TEMP_FAILURE_RETRY(close(params.fd));
+ close(params.fd);
}
if (logcmd) {