summaryrefslogtreecommitdiffstats
path: root/run-as
diff options
context:
space:
mode:
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;