run-as: build 1161573 failure
- pointer to integer comparison. Change-Id: I4a12c357ff5eaf2fc08c19c9efe7e2d7cb0dbe2e
This commit is contained in:
parent
a2b03c4a6a
commit
2e6e2713fb
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue