19 lines
601 B
Text
19 lines
601 B
Text
Index: src/closures.c
|
|
--- src/closures.c.orig
|
|
+++ src/closures.c
|
|
@@ -904,6 +904,7 @@ dlmmap (void *start, size_t length, int prot,
|
|
return ptr;
|
|
}
|
|
|
|
+#if 0
|
|
/* -1 != execfd hints that we already decided to use dlmmap_locked
|
|
last time. */
|
|
if (execfd == -1 && is_mprotect_enabled ())
|
|
@@ -932,6 +933,7 @@ dlmmap (void *start, size_t length, int prot,
|
|
with ((prot & ~PROT_WRITE) | PROT_EXEC) and mremap with
|
|
MREMAP_DUP and prot at this point. */
|
|
}
|
|
+#endif
|
|
|
|
pthread_mutex_lock (&open_temp_exec_file_mutex);
|
|
ptr = dlmmap_locked (start, length, prot, flags, offset);
|