about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTorvald Riegel <triegel@redhat.com>2015-01-13 01:09:29 +0100
committerTorvald Riegel <triegel@redhat.com>2015-01-13 01:09:29 +0100
commitc60ec0e016f9e2444c7bc2703fc6b671a26f0f5e (patch)
tree326c98709f9086cef70470fabd496608a598305d
parent5a9e4c09a2601a8100ea9a1f7bc0360782cd1625 (diff)
downloadglibc-c60ec0e016f9e2444c7bc2703fc6b671a26f0f5e.tar.gz
glibc-c60ec0e016f9e2444c7bc2703fc6b671a26f0f5e.tar.xz
glibc-c60ec0e016f9e2444c7bc2703fc6b671a26f0f5e.zip
Fix wake-up in sysdeps/nptl/fork.c.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/nptl/fork.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e8ca56b40a..e67cd0b574 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-13  Torvald Riegel  <triegel@redhat.com>
+
+	* sysdeps/nptl/fork.c (__libc_fork): Provide address of futex
+	variable to lll_futex_wake call, not the value itself.
+
 2015-01-12  Joseph Myers  <joseph@codesourcery.com>
 
 	[BZ #17803]
diff --git a/sysdeps/nptl/fork.c b/sysdeps/nptl/fork.c
index 5cffd82ced..74482b7a38 100644
--- a/sysdeps/nptl/fork.c
+++ b/sysdeps/nptl/fork.c
@@ -219,7 +219,7 @@ __libc_fork (void)
 
 	  if (atomic_decrement_and_test (&allp->handler->refcntr)
 	      && allp->handler->need_signal)
-	    lll_futex_wake (allp->handler->refcntr, 1, LLL_PRIVATE);
+	    lll_futex_wake (&allp->handler->refcntr, 1, LLL_PRIVATE);
 
 	  allp = allp->next;
 	}