OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f10681
)
linux-user: initialize mmap_mutex properly
author
Nathan Froyd
<froydnj@codesourcery.com>
Thu, 4 Jun 2009 18:51:56 +0000
(11:51 -0700)
committer
Riku Voipio
<riku.voipio@nokia.com>
Tue, 16 Jun 2009 13:58:45 +0000
(16:58 +0300)
We initialize mmap_mutex in any child threads/processes, but we need to
correctly statically initialize it for the original process.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
linux-user/mmap.c
patch
|
blob
|
history
diff --git
a/linux-user/mmap.c
b/linux-user/mmap.c
index
aa5813f
..
aa22006
100644
(file)
--- a/
linux-user/mmap.c
+++ b/
linux-user/mmap.c
@@
-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)