summaryrefslogtreecommitdiffstats
path: root/run-as
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-05-08 14:09:01 -0700
committerMark Salyzyn <salyzyn@google.com>2014-05-08 21:18:23 +0000
commit2e6e2713fb71f7e18b782ac22a7b466545b79e89 (patch)
tree3e7a39e161a75bdc984bffd5fed7302caea376af /run-as
parenta2b03c4a6a8d68b0991ed64c51df59b39370d8d4 (diff)
downloadsystem_core-2e6e2713fb71f7e18b782ac22a7b466545b79e89.zip
system_core-2e6e2713fb71f7e18b782ac22a7b466545b79e89.tar.gz
system_core-2e6e2713fb71f7e18b782ac22a7b466545b79e89.tar.bz2
run-as: build 1161573 failure
- pointer to integer comparison. Change-Id: I4a12c357ff5eaf2fc08c19c9efe7e2d7cb0dbe2e
Diffstat (limited to 'run-as')
-rw-r--r--run-as/package.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/run-as/package.c b/run-as/package.c
index 57dc00d..4f8f3a7 100644
--- a/run-as/package.c
+++ b/run-as/package.c
@@ -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;