Index: nptl/pthread_create.c |
diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c |
index e1a2c64fe0e96d842e2fc65d78d0e3f6296245a3..290ae496e189189e5a88570f3322ca5e61a48f1e 100644 |
--- a/nptl/pthread_create.c |
+++ b/nptl/pthread_create.c |
@@ -395,10 +395,11 @@ start_thread (void *arg) |
if (!IS_DETACHED (pd)) |
{ |
+ int count; |
/* We are about to die: make our pd "almost free" and wake up waiter. */ |
pd->tid = -2; |
- __nacl_futex_wake (&pd->tid, INT_MAX, __FUTEX_BITSET_MATCH_ANY); |
+ __nacl_futex_wake (&pd->tid, INT_MAX, __FUTEX_BITSET_MATCH_ANY, &count); |
} |
__nacl_irt_thread_exit (&pd->tid); |