diff options
author | Jakub Jelinek <jakub@redhat.com> | 2007-05-21 20:01:15 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2007-05-21 20:01:15 +0000 |
commit | 75831cc48d3fef9b0bb247aabbcdaceef85efa23 (patch) | |
tree | 49952b4916fa5d21f944970fa0ff5392742e9378 /nptl/pthread_mutex_lock.c | |
parent | 473e6b3f8fcf9c937d5a85da70b95f5c13f4a28f (diff) |
Backported selected fixes from 2007-05-{17,18,21}.cvs/fedora-glibc-2_6-2
Diffstat (limited to 'nptl/pthread_mutex_lock.c')
-rw-r--r-- | nptl/pthread_mutex_lock.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nptl/pthread_mutex_lock.c b/nptl/pthread_mutex_lock.c index 52cc47f4cc..1c3ee4fe25 100644 --- a/nptl/pthread_mutex_lock.c +++ b/nptl/pthread_mutex_lock.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +/* Copyright (C) 2002,2003,2004,2005,2006,2007 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -127,6 +127,8 @@ __pthread_mutex_lock (mutex) int newval = id; #ifdef NO_INCR newval |= FUTEX_WAITERS; +#else + newval |= (oldval & FUTEX_WAITERS); #endif newval |