am c6d96f80: am 0e69ba70: am 113067e2: Merge "run-as: build 1161573 failure"
* commit 'c6d96f8025ad9d083e6b7a4438d8e109c7fafaf5': run-as: build 1161573 failure
This commit is contained in:
commit
1c95847aa3
|
@ -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…
Reference in New Issue