Don't use TEMP_FAILURE_RETRY on close in recovery.
Bug: http://b/20501816 Change-Id: I35efcd8dcec7a6492ba70602d380d9980cdda31f
This commit is contained in:
parent
3badd56326
commit
b47afedb42
1 changed files with 2 additions and 2 deletions
|
@ -694,7 +694,7 @@ static int WriteStash(const char* base, const char* id, int blocks, uint8_t* buf
|
||||||
|
|
||||||
wsout:
|
wsout:
|
||||||
if (fd != -1) {
|
if (fd != -1) {
|
||||||
TEMP_FAILURE_RETRY(close(fd));
|
close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fn) {
|
if (fn) {
|
||||||
|
@ -1732,7 +1732,7 @@ pbiudone:
|
||||||
if (fsync(params.fd) == -1) {
|
if (fsync(params.fd) == -1) {
|
||||||
fprintf(stderr, "fsync failed: %s\n", strerror(errno));
|
fprintf(stderr, "fsync failed: %s\n", strerror(errno));
|
||||||
}
|
}
|
||||||
TEMP_FAILURE_RETRY(close(params.fd));
|
close(params.fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (logcmd) {
|
if (logcmd) {
|
||||||
|
|
Loading…
Reference in a new issue