am 113067e2: Merge "run-as: build 1161573 failure"

* commit '113067e2161e206482e80cfa9b58eeca02e0f6b6':
  run-as: build 1161573 failure
This commit is contained in:
Mark Salyzyn 2014-05-08 21:25:50 +00:00 committed by Android Git Automerger
commit 0e69ba70b5
1 changed files with 3 additions and 1 deletions

View File

@ -128,7 +128,9 @@ map_file(const char* filename, size_t* filesize)
}
/* Memory-map the file now */
address = TEMP_FAILURE_RETRY(mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0));
do {
address = mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, 0);
} while (address == MAP_FAILED && errno == EINTR);
if (address == MAP_FAILED) {
address = NULL;
goto EXIT;