From e6235295234544b35fb963587ebc8e41559bbf08 Mon Sep 17 00:00:00 2001 From: davidxu Date: Wed, 2 Nov 2005 13:52:48 +0000 Subject: In raise(), use a shortcut to directly send signal to current thread. --- lib/libthr/thread/thr_syscalls.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'lib') diff --git a/lib/libthr/thread/thr_syscalls.c b/lib/libthr/thread/thr_syscalls.c index 89cc836..c332861 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); } -- cgit v1.1