aboutsummaryrefslogtreecommitdiff
path: root/lib/libthr
diff options
context:
space:
mode:
authorDavid Xu <davidxu@FreeBSD.org>2005-11-02 13:52:48 +0000
committerDavid Xu <davidxu@FreeBSD.org>2005-11-02 13:52:48 +0000
commit7f838bf4294116013c201ff897825681447edb30 (patch)
tree9a43d5d00bdf9e4a6fed0f17070b28eb9c0ac83e /lib/libthr
parent34333b16cdbff9a44599686b809052878716f44e (diff)
Notes
Diffstat (limited to 'lib/libthr')
-rw-r--r--lib/libthr/thread/thr_syscalls.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libthr/thread/thr_syscalls.c b/lib/libthr/thread/thr_syscalls.c
index 89cc836a5b3b..c332861341a9 100644
--- a/lib/libthr/thread/thr_syscalls.c
+++ b/lib/libthr/thread/thr_syscalls.c
@@ -354,13 +354,8 @@ _raise(int sig)
if (!_thr_isthreaded())
ret = kill(getpid(), sig);
- else {
- ret = pthread_kill(pthread_self(), sig);
- if (ret != 0) {
- errno = ret;
- ret = -1;
- }
- }
+ else
+ ret = _thr_send_sig(_get_curthread(), sig);
return (ret);
}