In raise(), use a shortcut to directly send signal to current thread.

This commit is contained in:
davidxu 2005-11-02 13:52:48 +00:00
parent 0df84f5a83
commit e623529523

View File

@ -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);
}