OSDN Git Service

Don't use TEMP_FAILURE_RETRY on close in vold.
authorElliott Hughes <enh@google.com>
Sat, 16 May 2015 01:34:24 +0000 (18:34 -0700)
committerElliott Hughes <enh@google.com>
Sat, 16 May 2015 01:34:24 +0000 (18:34 -0700)
Bug: http://b/20501816
Change-Id: Ieecce9304539c250ed1728252b8c2c09d29afd7f

Utils.cpp

index f45907a..0b8ccfd 100644 (file)
--- a/Utils.cpp
+++ b/Utils.cpp
@@ -328,7 +328,7 @@ status_t ReadRandomBytes(size_t bytes, std::string& out) {
         out.append(buf, n);
         bytes -= n;
     }
-    TEMP_FAILURE_RETRY(close(fd));
+    close(fd);
 
     if (bytes == 0) {
         return OK;