am 113067e2: Merge "run-as: build 1161573 failure"
* commit '113067e2161e206482e80cfa9b58eeca02e0f6b6': run-as: build 1161573 failure
This commit is contained in:
commit
0e69ba70b5
|
@ -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