diff options
Diffstat (limited to 'init/util.cpp')
-rw-r--r-- | init/util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/util.cpp b/init/util.cpp index b3947f7..a5392c6 100644 --- a/init/util.cpp +++ b/init/util.cpp @@ -170,7 +170,7 @@ bool read_file(const char* path, std::string* content) { } bool okay = android::base::ReadFdToString(fd, content); - TEMP_FAILURE_RETRY(close(fd)); + close(fd); return okay; } @@ -184,7 +184,7 @@ int write_file(const char* path, const char* content) { if (result == -1) { NOTICE("write_file: Unable to write to '%s': %s\n", path, strerror(errno)); } - TEMP_FAILURE_RETRY(close(fd)); + close(fd); return result; } |