summaryrefslogtreecommitdiff
path: root/libpthread/sysdeps/hurd/pt-kill.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-01 12:11:21 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-01 12:11:21 +0200
commit9de2a32ced4076497e26ebfcffbd8c3ec260699b (patch)
treeeb739cf07b7efc0cb81fb65622957f78e01d8111 /libpthread/sysdeps/hurd/pt-kill.c
parent57ef58b1d62c28726f162a0a5cd3d2e7f7c92eed (diff)
parent872345fd3c7bf57a6e6b87e35159b28ff290a965 (diff)
Merge tag 'upstream/20090701'
Diffstat (limited to 'libpthread/sysdeps/hurd/pt-kill.c')
-rw-r--r--libpthread/sysdeps/hurd/pt-kill.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libpthread/sysdeps/hurd/pt-kill.c b/libpthread/sysdeps/hurd/pt-kill.c
index f970e065..d204e3f6 100644
--- a/libpthread/sysdeps/hurd/pt-kill.c
+++ b/libpthread/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;