diff options
author | Elliott Hughes | 2015-05-15 19:05:40 -0500 |
---|---|---|
committer | Elliott Hughes | 2015-05-15 19:05:40 -0500 |
commit | 997abb668b9248c2174c6cf169a0b7c6a02fd2cb (patch) | |
tree | 22a20d411ac16f4829e225ddf1cd60fef7a5ad73 /cmds | |
parent | 9188b4bb5d44c219face5a4c1c681700cc838294 (diff) | |
download | frameworks-native-997abb668b9248c2174c6cf169a0b7c6a02fd2cb.tar.gz frameworks-native-997abb668b9248c2174c6cf169a0b7c6a02fd2cb.tar.xz frameworks-native-997abb668b9248c2174c6cf169a0b7c6a02fd2cb.zip |
Don't use TEMP_FAILURE_RETRY on close in frameworks/native.
Bug: http://b/20501816
Change-Id: Id13a62f02243c6c4831e2f47944dc34fa822f5b6
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/bugreport/bugreport.cpp | 2 | ||||
-rw-r--r-- | cmds/dumpstate/utils.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cmds/bugreport/bugreport.cpp b/cmds/bugreport/bugreport.cpp index b606406df..6892b57f8 100644 --- a/cmds/bugreport/bugreport.cpp +++ b/cmds/bugreport/bugreport.cpp | |||
@@ -86,6 +86,6 @@ int main() { | |||
86 | } while (bytes_written != 0 && bytes_to_send > 0); | 86 | } while (bytes_written != 0 && bytes_to_send > 0); |
87 | } | 87 | } |
88 | 88 | ||
89 | TEMP_FAILURE_RETRY(close(s)); | 89 | close(s); |
90 | return 0; | 90 | return 0; |
91 | } | 91 | } |
diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c index 4fc23aa3c..44ba025ca 100644 --- a/cmds/dumpstate/utils.c +++ b/cmds/dumpstate/utils.c | |||
@@ -306,7 +306,7 @@ static int _dump_file_from_fd(const char *title, const char *path, int fd) { | |||
306 | } | 306 | } |
307 | } | 307 | } |
308 | } | 308 | } |
309 | TEMP_FAILURE_RETRY(close(fd)); | 309 | close(fd); |
310 | 310 | ||
311 | if (!newline) printf("\n"); | 311 | if (!newline) printf("\n"); |
312 | if (title) printf("\n"); | 312 | if (title) printf("\n"); |