summaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-18 00:24:19 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2009-10-18 00:24:19 +0200
commit75380300dc22bf3a8fbd89cf5a2358a9c29deaeb (patch)
tree9787b6f0c4e1e7bbbc8bd0abe1b6a3ab8f433ede /sysdeps
parent97998cd4d4a3be935bfa373c50c2624bbabd7d02 (diff)
Fix pthread_kill(thread, 0)
* sysdeps/hurd/pt-kill.c (pthread_kill): Return immediately after checks without calling _hurd_raise_signal if sig is 0.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/hurd/pt-kill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/hurd/pt-kill.c b/sysdeps/hurd/pt-kill.c
index f970e065..d204e3f6 100644
--- a/sysdeps/hurd/pt-kill.c
+++ b/sysdeps/hurd/pt-kill.c
@@ -39,6 +39,9 @@ pthread_kill (pthread_t thread, int sig)
ss = _hurd_thread_sigstate (pthread->kernel_thread);
assert (ss);
+ if (!sig)
+ return 0;
+
detail.exc = 0;
detail.code = sig;
detail.error = 0;