diff options
Diffstat (limited to 'libpthread/sysdeps/hurd')
-rw-r--r-- | libpthread/sysdeps/hurd/pt-kill.c | 3 |
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; |