We forgot to unpublish our temporary condition variable. Since it was

allocated on the stack, condition variable related structures would be
trashed, causing all kinds of problems. Fixes #1811 and #1812.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24009 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2008-02-18 21:51:34 +00:00
parent 3831b0dcd0
commit 306fe53248
+2
View File
@@ -796,6 +796,8 @@ sigsuspend(const sigset_t *mask)
break;
}
conditionVar.Unpublish();
// restore the original block mask
atomic_set(&thread->sig_block_mask, oldMask);