Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1857a7f5 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Don't use TEMP_FAILURE_RETRY on close in recovery.

Bug: http://b/20501816
Change-Id: I35efcd8dcec7a6492ba70602d380d9980cdda31f
(cherry picked from commit b47afedb)
parent df52e1e1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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) {