svn commit: r293494 - stable/10/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sat Jan 9 15:17:36 UTC 2016
Author: dchagin
Date: Sat Jan 9 15:17:34 2016
New Revision: 293494
URL: https://svnweb.freebsd.org/changeset/base/293494
Log:
MFC r283384:
pthread_join() caller do futex_wait on child_clear_tid. As a results
of multiple simultaneous calls to pthread_join() specifying the same
target thread are undefined wake up the one thread.
Modified:
stable/10/sys/compat/linux/linux_emul.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/compat/linux/linux_emul.c
==============================================================================
--- stable/10/sys/compat/linux/linux_emul.c Sat Jan 9 15:16:13 2016 (r293493)
+++ stable/10/sys/compat/linux/linux_emul.c Sat Jan 9 15:17:34 2016 (r293494)
@@ -271,7 +271,7 @@ linux_thread_detach(struct thread *td)
cup.uaddr = child_clear_tid;
cup.op = LINUX_FUTEX_WAKE;
- cup.val = 0x7fffffff; /* Awake everyone */
+ cup.val = 1; /* wake one */
cup.timeout = NULL;
cup.uaddr2 = NULL;
cup.val3 = 0;
More information about the svn-src-stable
mailing list