diff options
| author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-10-18 00:24:19 +0200 |
|---|---|---|
| committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2009-10-18 00:24:19 +0200 |
| commit | 75380300dc22bf3a8fbd89cf5a2358a9c29deaeb (patch) | |
| tree | 9787b6f0c4e1e7bbbc8bd0abe1b6a3ab8f433ede /sysdeps | |
| parent | 97998cd4d4a3be935bfa373c50c2624bbabd7d02 (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.c | 3 |
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; |
