summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysdeps/hurd/pt-kill.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sysdeps/hurd/pt-kill.c b/sysdeps/hurd/pt-kill.c
index d204e3f..49dfd7d 100644
--- a/sysdeps/hurd/pt-kill.c
+++ b/sysdeps/hurd/pt-kill.c
@@ -46,7 +46,6 @@ pthread_kill (pthread_t thread, int sig)
detail.code = sig;
detail.error = 0;
- _hurd_raise_signal (ss, sig, &detail);
-
- return 0;
+ __spin_lock (&ss->lock);
+ return _hurd_raise_signal (ss, sig, &detail);
}