From: GNU Libc Maintainers Date: Sat, 17 Sep 2016 18:00:44 +0000 (+0000) Subject: cvs-pt-kill X-Git-Tag: archive/raspbian/2.25-3+rpi1~1^2^2^2^2^2^2^2^2^2^2^2^2~72 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5012686315d4962741806997f3c51c80dd2b5b7f;p=glibc.git cvs-pt-kill commit 08d8159d5a960466bb9a951ecc8036baa4d74e6b Author: Samuel Thibault Date: Sat Oct 10 16:42:29 2015 +0200 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. Gbp-Pq: Topic hurd-i386 Gbp-Pq: Name cvs-pt-kill.diff --- diff --git a/libpthread/sysdeps/hurd/pt-kill.c b/libpthread/sysdeps/hurd/pt-kill.c index d204e3f61..49dfd7dfb 100644 --- a/libpthread/sysdeps/hurd/pt-kill.c +++ b/libpthread/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); }