cancel_event if thread's cancelability isn't disabled.
+2011-04-29 Corinna Vinschen <corinna@vinschen.de>
+
+ * posix_ipc.cc (ipc_cond_timedwait): Only wait for pthread's
+ cancel_event if thread's cancelability isn't disabled.
+
2011-04-28 Corinna Vinschen <corinna@vinschen.de>
* advapi32.cc (SetSecurityDescriptorDacl): Remove.
int ret = 0;
thread = pthread::self ();
- if (thread && thread->cancel_event)
+ if (thread && thread->cancel_event
+ && thread->cancelstate != PTHREAD_CANCEL_DISABLE)
w4[cnt++] = thread->cancel_event;
if (abstime)
{