Blame SOURCES/glibc-rh607461.patch

b40826
Index: glibc-2.12-2-gc4ccff1/nptl/allocatestack.c
b40826
===================================================================
b40826
--- glibc-2.12-2-gc4ccff1.orig/nptl/allocatestack.c
b40826
+++ glibc-2.12-2-gc4ccff1/nptl/allocatestack.c
b40826
@@ -994,7 +994,16 @@ setxid_mark_thread (struct xid_command *
b40826
 
b40826
       /* If the thread is exiting right now, ignore it.  */
b40826
       if ((ch & EXITING_BITMASK) != 0)
b40826
-	return;
b40826
+	{
b40826
+	  /* Release the futex if there is no other setxid in
b40826
+	     progress.  */
b40826
+	  if ((ch & SETXID_BITMASK) == 0)
b40826
+	    {
b40826
+	      t->setxid_futex = 1;
b40826
+	      lll_futex_wake (&t->setxid_futex, 1, LLL_PRIVATE);
b40826
+	    }
b40826
+	  return;
b40826
+	}
b40826
     }
b40826
   while (atomic_compare_and_exchange_bool_acq (&t->cancelhandling,
b40826
 					       ch | SETXID_BITMASK, ch));