Commit df377d03 authored by Nathan Froyd's avatar Nathan Froyd Committed by Riku Voipio

linux-user: initialize mmap_mutex properly

We initialize mmap_mutex in any child threads/processes, but we need to
correctly statically initialize it for the original process.
Signed-off-by: default avatarNathan Froyd <>
Signed-off-by: default avatarRiku Voipio <>
parent 5f106811
......@@ -36,7 +36,7 @@
//#define DEBUG_MMAP
#if defined(USE_NPTL)
pthread_mutex_t mmap_mutex;
pthread_mutex_t mmap_mutex = PTHREAD_MUTEX_INITIALIZER;
static int __thread mmap_lock_count;
void mmap_lock(void)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment