diff options
Diffstat (limited to 'sysdeps/mach/hurd/pt-docancel.c')
-rw-r--r-- | sysdeps/mach/hurd/pt-docancel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/pt-docancel.c b/sysdeps/mach/hurd/pt-docancel.c index 105c6fd..b3a5507 100644 --- a/sysdeps/mach/hurd/pt-docancel.c +++ b/sysdeps/mach/hurd/pt-docancel.c @@ -36,6 +36,8 @@ __pthread_do_cancel (struct __pthread *p) assert (p->cancel_pending == 1); assert (p->cancel_state == PTHREAD_CANCEL_ENABLE); + __pthread_mutex_unlock (&p->cancel_lock); + ktid = __mach_thread_self (); me = p->kernel_thread == ktid; __mach_port_deallocate (__mach_task_self (), ktid); |