aboutsummaryrefslogtreecommitdiff
path: root/hurd/thread-cancel.c
diff options
context:
space:
mode:
Diffstat (limited to 'hurd/thread-cancel.c')
-rw-r--r--hurd/thread-cancel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hurd/thread-cancel.c b/hurd/thread-cancel.c
index 7fb8cd23b4..81828457d5 100644
--- a/hurd/thread-cancel.c
+++ b/hurd/thread-cancel.c
@@ -42,6 +42,8 @@ hurd_thread_cancel (thread_t thread)
if (! ss)
return EINVAL;
+ if (ss == _hurd_self_sigstate ())
+ return EINTR; /* Bozo. */
__spin_lock (&ss->lock);
assert (! ss->critical_section);