summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/librthread/rthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c
index e710820ebc0..313dddcd513 100644
--- a/lib/librthread/rthread.c
+++ b/lib/librthread/rthread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rthread.c,v 1.47 2011/12/05 06:56:09 guenther Exp $ */
+/* $OpenBSD: rthread.c,v 1.48 2011/12/27 17:33:21 guenther Exp $ */
/*
* Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org>
* All Rights Reserved.
@@ -400,7 +400,7 @@ fail1:
int
pthread_kill(pthread_t thread, int sig)
{
- return (kill(thread->tid, sig));
+ return (kill(thread->tid, sig) == 0 ? 0 : errno);
}
int