[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 19/21] linux-user: initialize mmap_mutex properly
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PATCH 19/21] linux-user: initialize mmap_mutex properly |
Date: |
Fri, 12 Jun 2009 16:50:29 +0300 |
From: Nathan Froyd <address@hidden>
We initialize mmap_mutex in any child threads/processes, but we need to
correctly statically initialize it for the original process.
From: Nathan Froyd <address@hidden>
Signed-off-by: Nathan Froyd <address@hidden>
Signed-off-by: Riku Voipio <address@hidden>
---
linux-user/mmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-user/mmap.c b/linux-user/mmap.c
index aa5813f..aa22006 100644
--- 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)
--
1.6.2.1
- [Qemu-devel] [PATCH 11/21] linux-user: Added IP_(UN)BLOCK_SOURCE/IP_(ADD|DROP)_SOURCE_MEMBERSHIP flags to setsockopt, (continued)
- [Qemu-devel] [PATCH 11/21] linux-user: Added IP_(UN)BLOCK_SOURCE/IP_(ADD|DROP)_SOURCE_MEMBERSHIP flags to setsockopt, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 03/21] linux-user: implemented ELF coredump support for ARM target, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 18/21] RFC: fix fcntl support in linux-user - new try, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 05/21] linux-user: strace now handles guest strings correctly [v2], riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 09/21] Return EOPNOTSUPP instead of ENOSYS for *xattr* syscalls, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 04/21] linux-user: added x86 and x86_64 support for ELF coredump, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 19/21] linux-user: initialize mmap_mutex properly,
riku . voipio <=
- [Qemu-devel] [PATCH 13/21] linux-user: support private futexes, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 14/21] add futex wake op, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 07/21] linux-user: fix utimensat, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 15/21] linux-user: update syscall list, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 02/21] Implement shm* syscalls and fix 64/32bit errors, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 10/21] linux-user: Added IP_ADD_MEMBERSHIP/IP_DROP_MEMBERSHIP flags to setsockopt, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 12/21] linux-user: include linux/fs.h, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 20/21] linux-user/syscall.c: define _ATFILE_SOURCE, riku . voipio, 2009/06/12
- [Qemu-devel] [PATCH 16/21] linux-user: implement pipe2 [v3], riku . voipio, 2009/06/12