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

* commit 'c6d96f8025ad9d083e6b7a4438d8e109c7fafaf5':
  run-as: build 1161573 failure
This commit is contained in:
Mark Salyzyn 2014-05-08 21:43:30 +00:00 committed by Android Git Automerger
commit 1c95847aa3
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;