diff options
Diffstat (limited to 'hurd/thread-cancel.c')
-rw-r--r-- | hurd/thread-cancel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hurd/thread-cancel.c b/hurd/thread-cancel.c index c70b814dda..cd06597f2e 100644 --- a/hurd/thread-cancel.c +++ b/hurd/thread-cancel.c @@ -51,7 +51,6 @@ hurd_thread_cancel (thread_t thread) return 0; } - assert (! __spin_lock_locked (&ss->critical_section_lock)); __spin_lock (&ss->critical_section_lock); __spin_lock (&ss->lock); err = __thread_suspend (thread); @@ -80,6 +79,7 @@ hurd_thread_cancel (thread_t thread) } _hurd_critical_section_unlock (ss); + /* FIXME: handle EINTR */ return err; } @@ -91,7 +91,6 @@ hurd_check_cancel (void) int cancel; __spin_lock (&ss->lock); - assert (! __spin_lock_locked (&ss->critical_section_lock)); cancel = ss->cancel; ss->cancel = 0; __spin_unlock (&ss->lock); |