From 08d8159d5a960466bb9a951ecc8036baa4d74e6b Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 10 Oct 2015 16:42:29 +0200 Subject: Fix pthread_kill * sysdeps/hurd/pt-kill.c (pthread_kill): Lock ss lock before calling _hurd_raise_signal. Return error returned by _hurd_raise_signal. --- sysdeps/hurd/pt-kill.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sysdeps') 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); } -- cgit v1.2.3